{
  "openapi": "3.1.0",
  "info": {
    "title": "Yorlet API",
    "description": "The complete Yorlet API covering billing, core, loyalty, owners, and payments.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.yorlet.com",
      "description": "Production"
    },
    {
      "url": "https://api.yorlet.io",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "API Key authentication. Use \"Bearer YOUR_API_KEY\"."
      }
    },
    "schemas": {},
    "parameters": {}
  },
  "paths": {
    "/v1/coupons": {
      "post": {
        "operationId": "coupons_create",
        "summary": "Create a coupon",
        "description": "Create a coupon",
        "tags": [
          "Coupons"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount_off": {
                    "type": "number"
                  },
                  "applies_to": {
                    "type": "object",
                    "properties": {
                      "invoice_item_types": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "rent",
                            "charge",
                            "product"
                          ]
                        }
                      }
                    }
                  },
                  "currency": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "string",
                    "enum": [
                      "repeating",
                      "once",
                      "forever"
                    ]
                  },
                  "duration_in_months": {
                    "type": "number",
                    "minimum": 1
                  },
                  "max_redemptions": {
                    "type": "number",
                    "minimum": 1
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "percent_off": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "redeem_by": {
                    "type": "integer",
                    "description": "Must be a Unix timestamp in UTC time."
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a coupon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "coupon"
                      ]
                    },
                    "amount_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": "object",
                      "properties": {
                        "invoice_item_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "invoice_item_types"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "duration": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_in_months": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "max_redemptions": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "percent_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "redeem_by": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "times_redeemed": {
                      "type": "number",
                      "default": 0
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount_off",
                    "applies_to",
                    "currency",
                    "duration",
                    "duration_in_months",
                    "max_redemptions",
                    "metadata",
                    "name",
                    "percent_off",
                    "redeem_by",
                    "valid"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "coupons_list",
        "summary": "List all coupons",
        "description": "List all coupons",
        "tags": [
          "Coupons"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all coupons",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "coupon"
                            ]
                          },
                          "amount_off": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "applies_to": {
                            "type": "object",
                            "properties": {
                              "invoice_item_types": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "invoice_item_types"
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "duration": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "duration_in_months": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "max_redemptions": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "percent_off": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "redeem_by": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "times_redeemed": {
                            "type": "number",
                            "default": 0
                          },
                          "valid": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount_off",
                          "applies_to",
                          "currency",
                          "duration",
                          "duration_in_months",
                          "max_redemptions",
                          "metadata",
                          "name",
                          "percent_off",
                          "redeem_by",
                          "valid"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/coupons/{id}": {
      "get": {
        "operationId": "coupons_retrieve",
        "summary": "Retrieve a coupon",
        "description": "Retrieve a coupon",
        "tags": [
          "Coupons"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a coupon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "coupon"
                      ]
                    },
                    "amount_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": "object",
                      "properties": {
                        "invoice_item_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "invoice_item_types"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "duration": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_in_months": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "max_redemptions": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "percent_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "redeem_by": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "times_redeemed": {
                      "type": "number",
                      "default": 0
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount_off",
                    "applies_to",
                    "currency",
                    "duration",
                    "duration_in_months",
                    "max_redemptions",
                    "metadata",
                    "name",
                    "percent_off",
                    "redeem_by",
                    "valid"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "coupons_update",
        "summary": "Update a coupon",
        "description": "Update a coupon",
        "tags": [
          "Coupons"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update a coupon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "coupon"
                      ]
                    },
                    "amount_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": "object",
                      "properties": {
                        "invoice_item_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "invoice_item_types"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "duration": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_in_months": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "max_redemptions": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "percent_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "redeem_by": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "times_redeemed": {
                      "type": "number",
                      "default": 0
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount_off",
                    "applies_to",
                    "currency",
                    "duration",
                    "duration_in_months",
                    "max_redemptions",
                    "metadata",
                    "name",
                    "percent_off",
                    "redeem_by",
                    "valid"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "coupons_delete",
        "summary": "Delete a coupon",
        "description": "Delete a coupon",
        "tags": [
          "Coupons"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete a coupon",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "coupon"
                      ]
                    },
                    "amount_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": "object",
                      "properties": {
                        "invoice_item_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "invoice_item_types"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "duration": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_in_months": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "max_redemptions": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "percent_off": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "redeem_by": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "times_redeemed": {
                      "type": "number",
                      "default": 0
                    },
                    "valid": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount_off",
                    "applies_to",
                    "currency",
                    "duration",
                    "duration_in_months",
                    "max_redemptions",
                    "metadata",
                    "name",
                    "percent_off",
                    "redeem_by",
                    "valid"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/credit_grants": {
      "post": {
        "operationId": "credit_grants_create",
        "summary": "Create a credit grant",
        "description": "Create a credit grant",
        "tags": [
          "Credit Grants"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "The amount to be charged, represented as a whole integer if possible."
                  },
                  "applicability_config": {
                    "type": "object",
                    "properties": {
                      "limits": {
                        "type": "object",
                        "properties": {
                          "max_credit_per_invoice_item": {
                            "type": "integer",
                            "minimum": 1,
                            "description": "The maximum amount of credit per invoice item."
                          }
                        },
                        "required": [
                          "max_credit_per_invoice_item"
                        ]
                      },
                      "scope": {
                        "type": "object",
                        "properties": {
                          "application": {
                            "type": "string",
                            "description": "The application ID that must match the invoice application ID."
                          },
                          "invoice_item_type": {
                            "type": "string",
                            "enum": [
                              "rent"
                            ],
                            "description": "The type of invoice item that the credit grant can be applied to."
                          }
                        },
                        "required": [
                          "application",
                          "invoice_item_type"
                        ]
                      }
                    },
                    "required": [
                      "limits",
                      "scope"
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer the credit grant is for."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the credit grant. This will be displayed to the customer."
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "customer",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a credit grant",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "credit_grant"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "credit_grants_list",
        "summary": "List all credit grants",
        "description": "List all credit grants",
        "tags": [
          "Credit Grants"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all credit grants",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "credit_grant"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/credit_grants/{id}": {
      "get": {
        "operationId": "credit_grants_retrieve",
        "summary": "Retrieve a credit grant",
        "description": "Retrieve a credit grant",
        "tags": [
          "Credit Grants"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a credit grant",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "credit_grant"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/credit_grants/{id}/void": {
      "post": {
        "operationId": "credit_grants_void",
        "summary": "Void a credit grant",
        "description": "Void a credit grant",
        "tags": [
          "Credit Grants"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Update a credit grant",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "credit_grant"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/customer_balance_transactions": {
      "post": {
        "operationId": "customer_balance_transactions_create",
        "summary": "Create a customer balance transaction",
        "description": "Create a customer balance transaction",
        "tags": [
          "Customer Balance Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "The amount of the transaction."
                  },
                  "currency": {
                    "type": "string",
                    "description": "The currency of the transaction."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer the customer balance transaction is for."
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "customer",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a customer balance transaction",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "customer_balance_transaction"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount of the transaction."
                    },
                    "currency": {
                      "type": "string",
                      "description": "The currency of the transaction."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The customer this transaction is for."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                    },
                    "ending_balance": {
                      "type": "integer",
                      "description": "The ending balance of the transaction."
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "invoice"
                              ]
                            },
                            "amount_due": {
                              "type": "number",
                              "default": 0
                            },
                            "amount_paid": {
                              "type": "number",
                              "default": 0
                            },
                            "amount_remaining": {
                              "type": "number",
                              "default": 0
                            },
                            "application": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "applied_balance": {
                              "type": "number",
                              "default": 0
                            },
                            "apply_customer_balance": {
                              "type": "boolean",
                              "default": false
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attempt_count": {
                              "type": "number",
                              "default": 0
                            },
                            "attempted": {
                              "type": "boolean",
                              "default": false
                            },
                            "auto_advance": {
                              "type": "boolean",
                              "default": false
                            },
                            "billing_reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "manual",
                                "subscription",
                                "partial_payment",
                                null
                              ]
                            },
                            "collection_method": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "charge_automatically",
                                "send_invoice",
                                null
                              ]
                            },
                            "credit_grant": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "credit_grant_creation": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "credit_grant_data": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "applicability_config": {
                                      "type": "object",
                                      "properties": {
                                        "limits": {
                                          "type": "object",
                                          "properties": {
                                            "max_credit_per_invoice_item": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "max_credit_per_invoice_item"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "limits"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "applicability_config",
                                    "name"
                                  ]
                                }
                              },
                              "required": [
                                "enabled",
                                "credit_grant_data"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "custom_fields": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 40
                                  },
                                  "value": {
                                    "type": "string",
                                    "maxLength": 140
                                  }
                                },
                                "required": [
                                  "name",
                                  "value"
                                ]
                              },
                              "maxItems": 4
                            },
                            "customer": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            },
                            "customer_address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "customer_email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "customer_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "default_payment_method": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "discount": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {}
                            },
                            "discount_amount": {
                              "type": "number"
                            },
                            "due_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "ending_balance": {
                              "type": "number"
                            },
                            "finalized_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "footer": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "from_invoice": {
                              "type": "object",
                              "properties": {
                                "action": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "invoice": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "action",
                                "invoice"
                              ]
                            },
                            "hosted_invoice_url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "issuer": {
                              "type": "object",
                              "properties": {
                                "owner": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "owner",
                                    "self"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            "last_finalization_error": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "code",
                                "message"
                              ]
                            },
                            "late_payment_failure": {
                              "type": "boolean",
                              "default": false
                            },
                            "late_payment_failure_invoice": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "latest_revision": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "marked_uncollectible_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "next_payment_attempt": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "number_transfer_reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "off_platform_reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "optimized_collection_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "optimized_collection_reason": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "bacs_debit",
                                "days_before_collection",
                                null
                              ]
                            },
                            "paid": {
                              "type": "boolean"
                            },
                            "paid_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "paid_off_platform": {
                              "type": "boolean"
                            },
                            "part_payment_amount": {
                              "type": "number",
                              "default": 0
                            },
                            "payment_settings": {
                              "type": "object",
                              "properties": {
                                "payment_method_types": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "autogiro",
                                      "bacs_debit",
                                      "card",
                                      "card_present",
                                      "bank_transfer",
                                      "direct_transfer",
                                      "gbp_credit_transfer",
                                      "pay_by_bank",
                                      "sepa_debit"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "payment_method_types"
                              ]
                            },
                            "pending_part_payment": {
                              "type": "boolean",
                              "default": false
                            },
                            "pending_transaction": {
                              "type": "boolean",
                              "default": false
                            },
                            "period": {
                              "type": "object",
                              "properties": {
                                "end": {
                                  "type": "integer",
                                  "description": "Must be a Unix timestamp in UTC time."
                                },
                                "start": {
                                  "type": "integer",
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "end",
                                "start"
                              ]
                            },
                            "post_payment_credit_notes_amount": {
                              "type": "number",
                              "default": 0
                            },
                            "pre_payment_credit_notes_amount": {
                              "type": "number",
                              "default": 0
                            },
                            "source_dispute": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "starting_balance": {
                              "type": "number"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "draft",
                                "open",
                                "paid",
                                "uncollectible",
                                "void"
                              ]
                            },
                            "subtotal": {
                              "type": "number",
                              "default": 0
                            },
                            "subscription": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "tax": {
                              "type": "number",
                              "default": 0
                            },
                            "total": {
                              "type": "number",
                              "default": 0
                            },
                            "total_excluding_tax": {
                              "type": "number",
                              "default": 0
                            },
                            "total_pretax_credit_amounts": {
                              "type": "array",
                              "items": {},
                              "default": []
                            },
                            "total_tax_amounts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "tax_rate": {
                                    "type": "string"
                                  },
                                  "taxable_amount": {
                                    "type": "integer",
                                    "default": 0
                                  }
                                },
                                "required": [
                                  "amount",
                                  "tax_rate"
                                ]
                              },
                              "default": []
                            },
                            "transaction": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "transfer_data": {
                              "type": "array",
                              "items": {},
                              "default": []
                            },
                            "transfer_error": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "message",
                                "reason"
                              ]
                            },
                            "voided_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "application",
                            "assignee",
                            "billing_reason",
                            "collection_method",
                            "credit_grant",
                            "credit_grant_creation",
                            "currency",
                            "custom_fields",
                            "customer",
                            "customer_address",
                            "customer_email",
                            "customer_name",
                            "default_payment_method",
                            "description",
                            "discount",
                            "discount_amount",
                            "due_date",
                            "ending_balance",
                            "finalized_at",
                            "footer",
                            "from_invoice",
                            "hosted_invoice_url",
                            "issuer",
                            "last_finalization_error",
                            "late_payment_failure_invoice",
                            "latest_revision",
                            "marked_uncollectible_at",
                            "next_payment_attempt",
                            "number",
                            "number_transfer_reference",
                            "off_platform_reference",
                            "optimized_collection_date",
                            "optimized_collection_reason",
                            "paid",
                            "paid_at",
                            "paid_off_platform",
                            "payment_settings",
                            "period",
                            "source_dispute",
                            "starting_balance",
                            "status",
                            "subscription",
                            "transaction",
                            "transfer_error",
                            "voided_at"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "The invoice attached to the transaction."
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "adjustment",
                        "applied_to_invoice",
                        "payment",
                        "refund",
                        null
                      ],
                      "description": "The type of the transaction."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "currency",
                    "customer",
                    "description",
                    "ending_balance",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "customer_balance_transactions_list",
        "summary": "List all customer balance transactions",
        "description": "List all customer balance transactions",
        "tags": [
          "Customer Balance Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all customer balance transactions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "customer_balance_transaction"
                            ]
                          },
                          "amount": {
                            "type": "integer",
                            "description": "The amount of the transaction."
                          },
                          "currency": {
                            "type": "string",
                            "description": "The currency of the transaction."
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "customer"
                                    ]
                                  },
                                  "address": {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "default_payment_method": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delinquent": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "email": {
                                    "type": "string",
                                    "format": "email"
                                  },
                                  "invoice_prefix": {
                                    "type": "string"
                                  },
                                  "invoicing": {
                                    "type": "object",
                                    "properties": {
                                      "arrears_emails": {
                                        "type": "boolean"
                                      },
                                      "email_cc": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "email"
                                        }
                                      },
                                      "email_to": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "format": "email"
                                      }
                                    },
                                    "required": [
                                      "arrears_emails",
                                      "email_cc"
                                    ]
                                  },
                                  "legal": {
                                    "type": "object",
                                    "properties": {
                                      "dob": {
                                        "type": "object",
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "first_name",
                                      "last_name"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "radar": {
                                    "type": "object",
                                    "properties": {
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "reason": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "risk_level": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "message",
                                      "reason",
                                      "risk_level"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "address",
                                  "default_payment_method",
                                  "delinquent",
                                  "description",
                                  "email",
                                  "invoice_prefix",
                                  "invoicing",
                                  "legal",
                                  "name",
                                  "phone",
                                  "radar"
                                ]
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "The customer this transaction is for."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                          },
                          "ending_balance": {
                            "type": "integer",
                            "description": "The ending balance of the transaction."
                          },
                          "invoice": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "invoice"
                                    ]
                                  },
                                  "amount_due": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "amount_paid": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "amount_remaining": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "application": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "applied_balance": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "apply_customer_balance": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "assignee": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "attempt_count": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "attempted": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "auto_advance": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "billing_reason": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "manual",
                                      "subscription",
                                      "partial_payment",
                                      null
                                    ]
                                  },
                                  "collection_method": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "charge_automatically",
                                      "send_invoice",
                                      null
                                    ]
                                  },
                                  "credit_grant": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "credit_grant_creation": {
                                    "type": "object",
                                    "properties": {
                                      "enabled": {
                                        "type": "boolean"
                                      },
                                      "credit_grant_data": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "applicability_config": {
                                            "type": "object",
                                            "properties": {
                                              "limits": {
                                                "type": "object",
                                                "properties": {
                                                  "max_credit_per_invoice_item": {
                                                    "type": "number"
                                                  }
                                                },
                                                "required": [
                                                  "max_credit_per_invoice_item"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "limits"
                                            ]
                                          },
                                          "name": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "applicability_config",
                                          "name"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "enabled",
                                      "credit_grant_data"
                                    ]
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "custom_fields": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "maxLength": 40
                                        },
                                        "value": {
                                          "type": "string",
                                          "maxLength": 140
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "value"
                                      ]
                                    },
                                    "maxItems": 4
                                  },
                                  "customer": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      }
                                    ]
                                  },
                                  "customer_address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "customer_email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "customer_name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "default_payment_method": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "discount": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {}
                                  },
                                  "discount_amount": {
                                    "type": "number"
                                  },
                                  "due_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "ending_balance": {
                                    "type": "number"
                                  },
                                  "finalized_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "footer": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "from_invoice": {
                                    "type": "object",
                                    "properties": {
                                      "action": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "invoice": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "action",
                                      "invoice"
                                    ]
                                  },
                                  "hosted_invoice_url": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "issuer": {
                                    "type": "object",
                                    "properties": {
                                      "owner": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "owner",
                                          "self"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  },
                                  "last_finalization_error": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "code",
                                      "message"
                                    ]
                                  },
                                  "late_payment_failure": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "late_payment_failure_invoice": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "latest_revision": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "marked_uncollectible_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "next_payment_attempt": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "number": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "number_transfer_reference": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "off_platform_reference": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "optimized_collection_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "optimized_collection_reason": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "bacs_debit",
                                      "days_before_collection",
                                      null
                                    ]
                                  },
                                  "paid": {
                                    "type": "boolean"
                                  },
                                  "paid_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean"
                                  },
                                  "part_payment_amount": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "payment_settings": {
                                    "type": "object",
                                    "properties": {
                                      "payment_method_types": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "autogiro",
                                            "bacs_debit",
                                            "card",
                                            "card_present",
                                            "bank_transfer",
                                            "direct_transfer",
                                            "gbp_credit_transfer",
                                            "pay_by_bank",
                                            "sepa_debit"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "payment_method_types"
                                    ]
                                  },
                                  "pending_part_payment": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "pending_transaction": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "period": {
                                    "type": "object",
                                    "properties": {
                                      "end": {
                                        "type": "integer",
                                        "description": "Must be a Unix timestamp in UTC time."
                                      },
                                      "start": {
                                        "type": "integer",
                                        "description": "Must be a Unix timestamp in UTC time."
                                      }
                                    },
                                    "required": [
                                      "end",
                                      "start"
                                    ]
                                  },
                                  "post_payment_credit_notes_amount": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "pre_payment_credit_notes_amount": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "source_dispute": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "starting_balance": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "draft",
                                      "open",
                                      "paid",
                                      "uncollectible",
                                      "void"
                                    ]
                                  },
                                  "subtotal": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "subscription": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "tax": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "total": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "total_excluding_tax": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "total_pretax_credit_amounts": {
                                    "type": "array",
                                    "items": {},
                                    "default": []
                                  },
                                  "total_tax_amounts": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "integer"
                                        },
                                        "tax_rate": {
                                          "type": "string"
                                        },
                                        "taxable_amount": {
                                          "type": "integer",
                                          "default": 0
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "tax_rate"
                                      ]
                                    },
                                    "default": []
                                  },
                                  "transaction": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "transfer_data": {
                                    "type": "array",
                                    "items": {},
                                    "default": []
                                  },
                                  "transfer_error": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "reason": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "message",
                                      "reason"
                                    ]
                                  },
                                  "voided_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "application",
                                  "assignee",
                                  "billing_reason",
                                  "collection_method",
                                  "credit_grant",
                                  "credit_grant_creation",
                                  "currency",
                                  "custom_fields",
                                  "customer",
                                  "customer_address",
                                  "customer_email",
                                  "customer_name",
                                  "default_payment_method",
                                  "description",
                                  "discount",
                                  "discount_amount",
                                  "due_date",
                                  "ending_balance",
                                  "finalized_at",
                                  "footer",
                                  "from_invoice",
                                  "hosted_invoice_url",
                                  "issuer",
                                  "last_finalization_error",
                                  "late_payment_failure_invoice",
                                  "latest_revision",
                                  "marked_uncollectible_at",
                                  "next_payment_attempt",
                                  "number",
                                  "number_transfer_reference",
                                  "off_platform_reference",
                                  "optimized_collection_date",
                                  "optimized_collection_reason",
                                  "paid",
                                  "paid_at",
                                  "paid_off_platform",
                                  "payment_settings",
                                  "period",
                                  "source_dispute",
                                  "starting_balance",
                                  "status",
                                  "subscription",
                                  "transaction",
                                  "transfer_error",
                                  "voided_at"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null,
                            "description": "The invoice attached to the transaction."
                          },
                          "type": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "adjustment",
                              "applied_to_invoice",
                              "payment",
                              "refund",
                              null
                            ],
                            "description": "The type of the transaction."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "currency",
                          "customer",
                          "description",
                          "ending_balance",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoice_items": {
      "post": {
        "operationId": "invoice_items_create",
        "summary": "Create a invoice item",
        "description": "Create a invoice item",
        "tags": [
          "Invoice Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "The amount to be charged, represented as a whole integer if possible."
                  },
                  "apply_after": {
                    "type": "integer",
                    "description": "The date after which the invoice item will be applied."
                  },
                  "currency": {
                    "type": "string",
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer the invoice item is for."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description for the invoice item, to be displayed to the customer."
                  },
                  "invoice": {
                    "type": "string",
                    "description": "The ID of the invoice the invoice item is for."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "period_end": {
                    "type": "integer",
                    "description": "The end date of the invoice item."
                  },
                  "period_start": {
                    "type": "integer",
                    "description": "The start date of the invoice item."
                  },
                  "price": {
                    "type": "string",
                    "description": "The ID of the price object."
                  },
                  "tax_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "The tax percentage to use when calculating the tax amount."
                  },
                  "tax_rate": {
                    "type": "string",
                    "description": "The ID of the tax rate object."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "owner",
                      "none"
                    ],
                    "description": "The invoice item transfer behavior. The default is automatic."
                  },
                  "transfer_destination": {
                    "type": "string",
                    "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "charge",
                      "rent",
                      "product"
                    ],
                    "description": "The type of the invoice item."
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The ID of the unit the invoice item is for."
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "customer",
                  "description",
                  "tax_percent",
                  "transfer_behavior",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a invoice item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice_item"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount to be charged, represented as a whole integer if possible."
                    },
                    "apply_after": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date after which the invoice item will be applied."
                    },
                    "credit_amount": {
                      "type": "integer",
                      "description": "The amount of the credit to be applied to the invoice item."
                    },
                    "currency": {
                      "type": "string",
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                    },
                    "customer": {
                      "type": "string",
                      "description": "The ID of the customer the invoice item is for."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description for the invoice item, to be displayed to the customer."
                    },
                    "discount_amount": {
                      "type": "integer",
                      "description": "The amount of the discount to be applied to the invoice item."
                    },
                    "invoice": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the invoice the invoice item is for."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "price_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The interval of the price data."
                            },
                            "interval_count": {
                              "type": "integer",
                              "description": "The interval count of the price data."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ]
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price data."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ]
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the price object."
                    },
                    "proration_amount": {
                      "type": "integer",
                      "description": "The amount of the proration to be applied to the invoice item."
                    },
                    "tax_percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The tax percentage to use when calculating the tax amount."
                    },
                    "total_credit_grant_amount": {
                      "type": "integer",
                      "description": "The total credit grant amount for the invoice item."
                    },
                    "transfer_behavior": {
                      "type": "string",
                      "enum": [
                        "automatic",
                        "owner",
                        "none"
                      ],
                      "default": "automatic",
                      "description": "The invoice item transfer behavior. The default is automatic."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the invoice item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the unit the invoice item is for."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "apply_after",
                    "credit_amount",
                    "currency",
                    "customer",
                    "description",
                    "discount_amount",
                    "invoice",
                    "price_data",
                    "price",
                    "proration_amount",
                    "tax_percent",
                    "total_credit_grant_amount",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "invoice_items_list",
        "summary": "List all invoice items",
        "description": "List all invoice items",
        "tags": [
          "Invoice Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all invoice items",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "invoice_item"
                            ]
                          },
                          "amount": {
                            "type": "integer",
                            "description": "The amount to be charged, represented as a whole integer if possible."
                          },
                          "apply_after": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date after which the invoice item will be applied."
                          },
                          "credit_amount": {
                            "type": "integer",
                            "description": "The amount of the credit to be applied to the invoice item."
                          },
                          "currency": {
                            "type": "string",
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                          },
                          "customer": {
                            "type": "string",
                            "description": "The ID of the customer the invoice item is for."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description for the invoice item, to be displayed to the customer."
                          },
                          "discount_amount": {
                            "type": "integer",
                            "description": "The amount of the discount to be applied to the invoice item."
                          },
                          "invoice": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the invoice the invoice item is for."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "price_data": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "recurring": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "description": "The interval of the price data."
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "description": "The interval count of the price data."
                                  }
                                },
                                "required": [
                                  "interval",
                                  "interval_count"
                                ]
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "recurring",
                                  "one_time"
                                ],
                                "description": "The type of the price data."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "recurring",
                              "tax_percent",
                              "type"
                            ]
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the price object."
                          },
                          "proration_amount": {
                            "type": "integer",
                            "description": "The amount of the proration to be applied to the invoice item."
                          },
                          "tax_percent": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "The tax percentage to use when calculating the tax amount."
                          },
                          "total_credit_grant_amount": {
                            "type": "integer",
                            "description": "The total credit grant amount for the invoice item."
                          },
                          "transfer_behavior": {
                            "type": "string",
                            "enum": [
                              "automatic",
                              "owner",
                              "none"
                            ],
                            "default": "automatic",
                            "description": "The invoice item transfer behavior. The default is automatic."
                          },
                          "transfer_destination": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "charge",
                              "rent",
                              "product"
                            ],
                            "description": "The type of the invoice item."
                          },
                          "unit": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the unit the invoice item is for."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "apply_after",
                          "credit_amount",
                          "currency",
                          "customer",
                          "description",
                          "discount_amount",
                          "invoice",
                          "price_data",
                          "price",
                          "proration_amount",
                          "tax_percent",
                          "total_credit_grant_amount",
                          "transfer_destination",
                          "type",
                          "unit"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoice_items/{id}": {
      "get": {
        "operationId": "invoice_items_retrieve",
        "summary": "Retrieve a invoice item",
        "description": "Retrieve a invoice item",
        "tags": [
          "Invoice Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a invoice item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice_item"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount to be charged, represented as a whole integer if possible."
                    },
                    "apply_after": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date after which the invoice item will be applied."
                    },
                    "credit_amount": {
                      "type": "integer",
                      "description": "The amount of the credit to be applied to the invoice item."
                    },
                    "currency": {
                      "type": "string",
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                    },
                    "customer": {
                      "type": "string",
                      "description": "The ID of the customer the invoice item is for."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description for the invoice item, to be displayed to the customer."
                    },
                    "discount_amount": {
                      "type": "integer",
                      "description": "The amount of the discount to be applied to the invoice item."
                    },
                    "invoice": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the invoice the invoice item is for."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "price_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The interval of the price data."
                            },
                            "interval_count": {
                              "type": "integer",
                              "description": "The interval count of the price data."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ]
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price data."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ]
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the price object."
                    },
                    "proration_amount": {
                      "type": "integer",
                      "description": "The amount of the proration to be applied to the invoice item."
                    },
                    "tax_percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The tax percentage to use when calculating the tax amount."
                    },
                    "total_credit_grant_amount": {
                      "type": "integer",
                      "description": "The total credit grant amount for the invoice item."
                    },
                    "transfer_behavior": {
                      "type": "string",
                      "enum": [
                        "automatic",
                        "owner",
                        "none"
                      ],
                      "default": "automatic",
                      "description": "The invoice item transfer behavior. The default is automatic."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the invoice item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the unit the invoice item is for."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "apply_after",
                    "credit_amount",
                    "currency",
                    "customer",
                    "description",
                    "discount_amount",
                    "invoice",
                    "price_data",
                    "price",
                    "proration_amount",
                    "tax_percent",
                    "total_credit_grant_amount",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "invoice_items_update",
        "summary": "Update a invoice item",
        "description": "Update a invoice item",
        "tags": [
          "Invoice Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "The amount to be charged, represented as a whole integer if possible."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description for the invoice item, to be displayed to the customer."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "tax_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "The tax percentage to use when calculating the tax amount."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "owner",
                      "none"
                    ],
                    "description": "The invoice item transfer behavior."
                  },
                  "transfer_destination": {
                    "type": "string",
                    "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update a invoice item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice_item"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount to be charged, represented as a whole integer if possible."
                    },
                    "apply_after": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date after which the invoice item will be applied."
                    },
                    "credit_amount": {
                      "type": "integer",
                      "description": "The amount of the credit to be applied to the invoice item."
                    },
                    "currency": {
                      "type": "string",
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                    },
                    "customer": {
                      "type": "string",
                      "description": "The ID of the customer the invoice item is for."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description for the invoice item, to be displayed to the customer."
                    },
                    "discount_amount": {
                      "type": "integer",
                      "description": "The amount of the discount to be applied to the invoice item."
                    },
                    "invoice": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the invoice the invoice item is for."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "price_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The interval of the price data."
                            },
                            "interval_count": {
                              "type": "integer",
                              "description": "The interval count of the price data."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ]
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price data."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ]
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the price object."
                    },
                    "proration_amount": {
                      "type": "integer",
                      "description": "The amount of the proration to be applied to the invoice item."
                    },
                    "tax_percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The tax percentage to use when calculating the tax amount."
                    },
                    "total_credit_grant_amount": {
                      "type": "integer",
                      "description": "The total credit grant amount for the invoice item."
                    },
                    "transfer_behavior": {
                      "type": "string",
                      "enum": [
                        "automatic",
                        "owner",
                        "none"
                      ],
                      "default": "automatic",
                      "description": "The invoice item transfer behavior. The default is automatic."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the invoice item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the unit the invoice item is for."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "apply_after",
                    "credit_amount",
                    "currency",
                    "customer",
                    "description",
                    "discount_amount",
                    "invoice",
                    "price_data",
                    "price",
                    "proration_amount",
                    "tax_percent",
                    "total_credit_grant_amount",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "invoice_items_delete",
        "summary": "Delete a invoice item",
        "description": "Delete a invoice item",
        "tags": [
          "Invoice Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete a invoice item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice_item"
                      ]
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount to be charged, represented as a whole integer if possible."
                    },
                    "apply_after": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date after which the invoice item will be applied."
                    },
                    "credit_amount": {
                      "type": "integer",
                      "description": "The amount of the credit to be applied to the invoice item."
                    },
                    "currency": {
                      "type": "string",
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                    },
                    "customer": {
                      "type": "string",
                      "description": "The ID of the customer the invoice item is for."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description for the invoice item, to be displayed to the customer."
                    },
                    "discount_amount": {
                      "type": "integer",
                      "description": "The amount of the discount to be applied to the invoice item."
                    },
                    "invoice": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the invoice the invoice item is for."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "price_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The interval of the price data."
                            },
                            "interval_count": {
                              "type": "integer",
                              "description": "The interval count of the price data."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ]
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price data."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ]
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the price object."
                    },
                    "proration_amount": {
                      "type": "integer",
                      "description": "The amount of the proration to be applied to the invoice item."
                    },
                    "tax_percent": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The tax percentage to use when calculating the tax amount."
                    },
                    "total_credit_grant_amount": {
                      "type": "integer",
                      "description": "The total credit grant amount for the invoice item."
                    },
                    "transfer_behavior": {
                      "type": "string",
                      "enum": [
                        "automatic",
                        "owner",
                        "none"
                      ],
                      "default": "automatic",
                      "description": "The invoice item transfer behavior. The default is automatic."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the invoice item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The ID of the unit the invoice item is for."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "apply_after",
                    "credit_amount",
                    "currency",
                    "customer",
                    "description",
                    "discount_amount",
                    "invoice",
                    "price_data",
                    "price",
                    "proration_amount",
                    "tax_percent",
                    "total_credit_grant_amount",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices": {
      "post": {
        "operationId": "invoices_create",
        "summary": "Create an invoice",
        "description": "Create an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "application": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "apply_customer_balance": {
                    "type": "boolean"
                  },
                  "assignee": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "auto_advance": {
                    "type": "boolean"
                  },
                  "collection_method": {
                    "type": "string",
                    "enum": [
                      "charge_automatically",
                      "send_invoice"
                    ]
                  },
                  "coupon": {
                    "type": "string"
                  },
                  "credit_grant_creation": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "credit_grant_data": {
                        "type": "object",
                        "properties": {
                          "applicability_config": {
                            "type": "object",
                            "properties": {
                              "limits": {
                                "type": "object",
                                "properties": {
                                  "max_credit_per_invoice_item": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                },
                                "required": [
                                  "max_credit_per_invoice_item"
                                ]
                              }
                            },
                            "required": [
                              "limits"
                            ]
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "applicability_config",
                          "name"
                        ]
                      }
                    },
                    "required": [
                      "enabled"
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek",
                      null
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                    "example": "gbp"
                  },
                  "custom_fields": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 140
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    },
                    "maxItems": 4
                  },
                  "customer": {
                    "type": "string"
                  },
                  "days_until_due": {
                    "type": "integer"
                  },
                  "default_payment_method": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "due_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Must be a Unix timestamp in UTC time."
                  },
                  "from_invoice": {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "revision"
                        ]
                      },
                      "invoice": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "action",
                      "invoice"
                    ]
                  },
                  "issuer": {
                    "type": "object",
                    "properties": {
                      "owner": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "owner",
                          "self"
                        ]
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "apply_after": {
                          "type": "integer",
                          "description": "The date after which the invoice item will be applied."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "customer": {
                          "type": "string",
                          "description": "The ID of the customer the invoice item is for."
                        },
                        "description": {
                          "type": "string",
                          "description": "The description for the invoice item, to be displayed to the customer."
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "period_end": {
                          "type": "integer",
                          "description": "The end date of the invoice item."
                        },
                        "period_start": {
                          "type": "integer",
                          "description": "The start date of the invoice item."
                        },
                        "price": {
                          "type": "string",
                          "description": "The ID of the price object."
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "tax_rate": {
                          "type": "string",
                          "description": "The ID of the tax rate object."
                        },
                        "transfer_behavior": {
                          "type": "string",
                          "enum": [
                            "automatic",
                            "owner",
                            "none"
                          ],
                          "description": "The invoice item transfer behavior. The default is automatic."
                        },
                        "transfer_destination": {
                          "type": "string",
                          "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "charge",
                            "rent",
                            "product"
                          ],
                          "description": "The type of the invoice item."
                        },
                        "unit": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The ID of the unit the invoice item is for."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "customer",
                        "description",
                        "tax_percent",
                        "transfer_behavior",
                        "type"
                      ]
                    },
                    "maxItems": 20
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "payment_settings": {
                    "type": "object",
                    "properties": {
                      "payment_method_types": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "autogiro",
                            "bacs_debit",
                            "card",
                            "card_present",
                            "bank_transfer",
                            "direct_transfer",
                            "gbp_credit_transfer",
                            "pay_by_bank",
                            "sepa_debit"
                          ]
                        },
                        "minItems": 1
                      }
                    },
                    "required": [
                      "payment_method_types"
                    ]
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "start": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      },
                      "end": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      }
                    },
                    "required": [
                      "start",
                      "end"
                    ]
                  },
                  "send_finalization_email": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "collection_method"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "invoices_list",
        "summary": "List invoices",
        "description": "List invoices",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of invoices",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "invoice"
                            ]
                          },
                          "amount_due": {
                            "type": "number",
                            "default": 0
                          },
                          "amount_paid": {
                            "type": "number",
                            "default": 0
                          },
                          "amount_remaining": {
                            "type": "number",
                            "default": 0
                          },
                          "application": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "applied_balance": {
                            "type": "number",
                            "default": 0
                          },
                          "apply_customer_balance": {
                            "type": "boolean",
                            "default": false
                          },
                          "assignee": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "attempt_count": {
                            "type": "number",
                            "default": 0
                          },
                          "attempted": {
                            "type": "boolean",
                            "default": false
                          },
                          "auto_advance": {
                            "type": "boolean",
                            "default": false
                          },
                          "billing_reason": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "manual",
                              "subscription",
                              "partial_payment",
                              null
                            ]
                          },
                          "collection_method": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "charge_automatically",
                              "send_invoice",
                              null
                            ]
                          },
                          "credit_grant": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "credit_grant_creation": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "credit_grant_data": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "applicability_config": {
                                    "type": "object",
                                    "properties": {
                                      "limits": {
                                        "type": "object",
                                        "properties": {
                                          "max_credit_per_invoice_item": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "max_credit_per_invoice_item"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "limits"
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "applicability_config",
                                  "name"
                                ]
                              }
                            },
                            "required": [
                              "enabled",
                              "credit_grant_data"
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "custom_fields": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "maxLength": 40
                                },
                                "value": {
                                  "type": "string",
                                  "maxLength": 140
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ]
                            },
                            "maxItems": 4
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          },
                          "customer_address": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "line1": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "line2": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "city": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "postal_code": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          },
                          "customer_email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "customer_name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "default_payment_method": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "discount": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {}
                          },
                          "discount_amount": {
                            "type": "number"
                          },
                          "due_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "ending_balance": {
                            "type": "number"
                          },
                          "finalized_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "footer": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "from_invoice": {
                            "type": "object",
                            "properties": {
                              "action": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "invoice": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "action",
                              "invoice"
                            ]
                          },
                          "hosted_invoice_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "issuer": {
                            "type": "object",
                            "properties": {
                              "owner": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "owner",
                                  "self"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "last_finalization_error": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "code": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "message": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "code",
                              "message"
                            ]
                          },
                          "late_payment_failure": {
                            "type": "boolean",
                            "default": false
                          },
                          "late_payment_failure_invoice": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "latest_revision": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "marked_uncollectible_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "next_payment_attempt": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "number": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "number_transfer_reference": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "off_platform_reference": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "optimized_collection_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "optimized_collection_reason": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "bacs_debit",
                              "days_before_collection",
                              null
                            ]
                          },
                          "paid": {
                            "type": "boolean"
                          },
                          "paid_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "paid_off_platform": {
                            "type": "boolean"
                          },
                          "part_payment_amount": {
                            "type": "number",
                            "default": 0
                          },
                          "payment_settings": {
                            "type": "object",
                            "properties": {
                              "payment_method_types": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "autogiro",
                                    "bacs_debit",
                                    "card",
                                    "card_present",
                                    "bank_transfer",
                                    "direct_transfer",
                                    "gbp_credit_transfer",
                                    "pay_by_bank",
                                    "sepa_debit"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "payment_method_types"
                            ]
                          },
                          "pending_part_payment": {
                            "type": "boolean",
                            "default": false
                          },
                          "pending_transaction": {
                            "type": "boolean",
                            "default": false
                          },
                          "period": {
                            "type": "object",
                            "properties": {
                              "end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              }
                            },
                            "required": [
                              "end",
                              "start"
                            ]
                          },
                          "post_payment_credit_notes_amount": {
                            "type": "number",
                            "default": 0
                          },
                          "pre_payment_credit_notes_amount": {
                            "type": "number",
                            "default": 0
                          },
                          "source_dispute": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "starting_balance": {
                            "type": "number"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "open",
                              "paid",
                              "uncollectible",
                              "void"
                            ]
                          },
                          "subtotal": {
                            "type": "number",
                            "default": 0
                          },
                          "subscription": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tax": {
                            "type": "number",
                            "default": 0
                          },
                          "total": {
                            "type": "number",
                            "default": 0
                          },
                          "total_excluding_tax": {
                            "type": "number",
                            "default": 0
                          },
                          "total_pretax_credit_amounts": {
                            "type": "array",
                            "items": {},
                            "default": []
                          },
                          "total_tax_amounts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "integer"
                                },
                                "tax_rate": {
                                  "type": "string"
                                },
                                "taxable_amount": {
                                  "type": "integer",
                                  "default": 0
                                }
                              },
                              "required": [
                                "amount",
                                "tax_rate"
                              ]
                            },
                            "default": []
                          },
                          "transaction": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "transfer_data": {
                            "type": "array",
                            "items": {},
                            "default": []
                          },
                          "transfer_error": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "message": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "message",
                              "reason"
                            ]
                          },
                          "voided_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "application",
                          "assignee",
                          "billing_reason",
                          "collection_method",
                          "credit_grant",
                          "credit_grant_creation",
                          "currency",
                          "custom_fields",
                          "customer",
                          "customer_address",
                          "customer_email",
                          "customer_name",
                          "default_payment_method",
                          "description",
                          "discount",
                          "discount_amount",
                          "due_date",
                          "ending_balance",
                          "finalized_at",
                          "footer",
                          "from_invoice",
                          "hosted_invoice_url",
                          "issuer",
                          "last_finalization_error",
                          "late_payment_failure_invoice",
                          "latest_revision",
                          "marked_uncollectible_at",
                          "next_payment_attempt",
                          "number",
                          "number_transfer_reference",
                          "off_platform_reference",
                          "optimized_collection_date",
                          "optimized_collection_reason",
                          "paid",
                          "paid_at",
                          "paid_off_platform",
                          "payment_settings",
                          "period",
                          "source_dispute",
                          "starting_balance",
                          "status",
                          "subscription",
                          "transaction",
                          "transfer_error",
                          "voided_at"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/upcoming": {
      "get": {
        "operationId": "invoices_retrieve-upcoming",
        "summary": "Retrieve an upcoming invoice",
        "description": "Retrieve an upcoming invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve an upcoming invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "line_items": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "invoice_item"
                            ]
                          },
                          "amount": {
                            "type": "integer",
                            "description": "The amount to be charged, represented as a whole integer if possible."
                          },
                          "apply_after": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date after which the invoice item will be applied."
                          },
                          "credit_amount": {
                            "type": "integer",
                            "description": "The amount of the credit to be applied to the invoice item."
                          },
                          "currency": {
                            "type": "string",
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                          },
                          "customer": {
                            "type": "string",
                            "description": "The ID of the customer the invoice item is for."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description for the invoice item, to be displayed to the customer."
                          },
                          "discount_amount": {
                            "type": "integer",
                            "description": "The amount of the discount to be applied to the invoice item."
                          },
                          "invoice": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the invoice the invoice item is for."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "price_data": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "recurring": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "description": "The interval of the price data."
                                  },
                                  "interval_count": {
                                    "type": "integer",
                                    "description": "The interval count of the price data."
                                  }
                                },
                                "required": [
                                  "interval",
                                  "interval_count"
                                ]
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "recurring",
                                  "one_time"
                                ],
                                "description": "The type of the price data."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "recurring",
                              "tax_percent",
                              "type"
                            ]
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the price object."
                          },
                          "proration_amount": {
                            "type": "integer",
                            "description": "The amount of the proration to be applied to the invoice item."
                          },
                          "tax_percent": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "The tax percentage to use when calculating the tax amount."
                          },
                          "total_credit_grant_amount": {
                            "type": "integer",
                            "description": "The total credit grant amount for the invoice item."
                          },
                          "transfer_behavior": {
                            "type": "string",
                            "enum": [
                              "automatic",
                              "owner",
                              "none"
                            ],
                            "default": "automatic",
                            "description": "The invoice item transfer behavior. The default is automatic."
                          },
                          "transfer_destination": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "charge",
                              "rent",
                              "product"
                            ],
                            "description": "The type of the invoice item."
                          },
                          "unit": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The ID of the unit the invoice item is for."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "apply_after",
                          "credit_amount",
                          "currency",
                          "customer",
                          "description",
                          "discount_amount",
                          "invoice",
                          "price_data",
                          "price",
                          "proration_amount",
                          "tax_percent",
                          "total_credit_grant_amount",
                          "transfer_destination",
                          "type",
                          "unit"
                        ]
                      }
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at",
                    "line_items"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}": {
      "get": {
        "operationId": "invoices_retrieve",
        "summary": "Retrieve an invoice",
        "description": "Retrieve an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "invoices_update",
        "summary": "Update an invoice",
        "description": "Update an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply_customer_balance": {
                    "type": "boolean",
                    "default": true
                  },
                  "assignee": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "collection_method": {
                    "type": "string",
                    "enum": [
                      "charge_automatically",
                      "send_invoice"
                    ],
                    "default": "charge_automatically"
                  },
                  "auto_advance": {
                    "type": "boolean"
                  },
                  "coupon": {
                    "type": "string"
                  },
                  "custom_fields": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 40
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 140
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    },
                    "maxItems": 4
                  },
                  "days_until_due": {
                    "type": "integer"
                  },
                  "default_payment_method": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "due_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Must be a Unix timestamp in UTC time."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "payment_settings": {
                    "type": "object",
                    "properties": {
                      "payment_method_types": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "autogiro",
                            "bacs_debit",
                            "card",
                            "card_present",
                            "bank_transfer",
                            "direct_transfer",
                            "gbp_credit_transfer",
                            "pay_by_bank",
                            "sepa_debit"
                          ]
                        },
                        "minItems": 1
                      }
                    },
                    "required": [
                      "payment_method_types"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "invoices_delete",
        "summary": "Delete an invoice",
        "description": "Delete an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/attach_payment": {
      "post": {
        "operationId": "invoices_attach_payment",
        "summary": "Attach a payment to an invoice",
        "description": "Attach a payment to an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transaction": {
                    "type": "string"
                  }
                },
                "required": [
                  "transaction"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Attach a payment to an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/finalize": {
      "post": {
        "operationId": "invoices_finalize",
        "summary": "Finalize an invoice",
        "description": "Finalize an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "send_finalization_email": {
                    "type": "boolean",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Finalize an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/send": {
      "post": {
        "operationId": "invoices_send",
        "summary": "Send an invoice",
        "description": "Send an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Send an invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/mark_paid": {
      "post": {
        "operationId": "invoices_mark_paid",
        "summary": "Mark an invoice as paid",
        "description": "Mark an invoice as paid",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paid_off_platform_at": {
                    "type": "number"
                  },
                  "internal_reference": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the paid invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/mark_uncollectible": {
      "post": {
        "operationId": "invoices_mark_uncollectible",
        "summary": "Mark an invoice as uncollectible",
        "description": "Mark an invoice as uncollectible",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Mark an invoice as uncollectible",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/invoices/{id}/void": {
      "post": {
        "operationId": "invoices_mark_void",
        "summary": "Void an invoice",
        "description": "Void an invoice",
        "tags": [
          "Invoices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the voided invoice",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "invoice"
                      ]
                    },
                    "amount_due": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_paid": {
                      "type": "number",
                      "default": 0
                    },
                    "amount_remaining": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applied_balance": {
                      "type": "number",
                      "default": 0
                    },
                    "apply_customer_balance": {
                      "type": "boolean",
                      "default": false
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attempt_count": {
                      "type": "number",
                      "default": 0
                    },
                    "attempted": {
                      "type": "boolean",
                      "default": false
                    },
                    "auto_advance": {
                      "type": "boolean",
                      "default": false
                    },
                    "billing_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "subscription",
                        "partial_payment",
                        null
                      ]
                    },
                    "collection_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "charge_automatically",
                        "send_invoice",
                        null
                      ]
                    },
                    "credit_grant": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit_grant_creation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "credit_grant_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "applicability_config": {
                              "type": "object",
                              "properties": {
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "max_credit_per_invoice_item": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "max_credit_per_invoice_item"
                                  ]
                                }
                              },
                              "required": [
                                "limits"
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "applicability_config",
                            "name"
                          ]
                        }
                      },
                      "required": [
                        "enabled",
                        "credit_grant_data"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "custom_fields": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "customer_address": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "customer_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "customer_name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "discount": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {}
                    },
                    "discount_amount": {
                      "type": "number"
                    },
                    "due_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "ending_balance": {
                      "type": "number"
                    },
                    "finalized_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "footer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from_invoice": {
                      "type": "object",
                      "properties": {
                        "action": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invoice": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "action",
                        "invoice"
                      ]
                    },
                    "hosted_invoice_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer": {
                      "type": "object",
                      "properties": {
                        "owner": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "self"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "last_finalization_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    "late_payment_failure": {
                      "type": "boolean",
                      "default": false
                    },
                    "late_payment_failure_invoice": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latest_revision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marked_uncollectible_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_payment_attempt": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "number_transfer_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "off_platform_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "optimized_collection_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "optimized_collection_reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "bacs_debit",
                        "days_before_collection",
                        null
                      ]
                    },
                    "paid": {
                      "type": "boolean"
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "paid_off_platform": {
                      "type": "boolean"
                    },
                    "part_payment_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "payment_settings": {
                      "type": "object",
                      "properties": {
                        "payment_method_types": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          }
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ]
                    },
                    "pending_part_payment": {
                      "type": "boolean",
                      "default": false
                    },
                    "pending_transaction": {
                      "type": "boolean",
                      "default": false
                    },
                    "period": {
                      "type": "object",
                      "properties": {
                        "end": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": "integer",
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "end",
                        "start"
                      ]
                    },
                    "post_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "pre_payment_credit_notes_amount": {
                      "type": "number",
                      "default": 0
                    },
                    "source_dispute": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "starting_balance": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "open",
                        "paid",
                        "uncollectible",
                        "void"
                      ]
                    },
                    "subtotal": {
                      "type": "number",
                      "default": 0
                    },
                    "subscription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total": {
                      "type": "number",
                      "default": 0
                    },
                    "total_excluding_tax": {
                      "type": "number",
                      "default": 0
                    },
                    "total_pretax_credit_amounts": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "total_tax_amounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "integer"
                          },
                          "tax_rate": {
                            "type": "string"
                          },
                          "taxable_amount": {
                            "type": "integer",
                            "default": 0
                          }
                        },
                        "required": [
                          "amount",
                          "tax_rate"
                        ]
                      },
                      "default": []
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "transfer_data": {
                      "type": "array",
                      "items": {},
                      "default": []
                    },
                    "transfer_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "message",
                        "reason"
                      ]
                    },
                    "voided_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "assignee",
                    "billing_reason",
                    "collection_method",
                    "credit_grant",
                    "credit_grant_creation",
                    "currency",
                    "custom_fields",
                    "customer",
                    "customer_address",
                    "customer_email",
                    "customer_name",
                    "default_payment_method",
                    "description",
                    "discount",
                    "discount_amount",
                    "due_date",
                    "ending_balance",
                    "finalized_at",
                    "footer",
                    "from_invoice",
                    "hosted_invoice_url",
                    "issuer",
                    "last_finalization_error",
                    "late_payment_failure_invoice",
                    "latest_revision",
                    "marked_uncollectible_at",
                    "next_payment_attempt",
                    "number",
                    "number_transfer_reference",
                    "off_platform_reference",
                    "optimized_collection_date",
                    "optimized_collection_reason",
                    "paid",
                    "paid_at",
                    "paid_off_platform",
                    "payment_settings",
                    "period",
                    "source_dispute",
                    "starting_balance",
                    "status",
                    "subscription",
                    "transaction",
                    "transfer_error",
                    "voided_at"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/prices": {
      "post": {
        "operationId": "prices_create",
        "summary": "Create a price",
        "description": "Create a price",
        "tags": [
          "Prices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "description": "The amount of the price, represented as a whole integer."
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek"
                    ],
                    "description": "The currency of the price.",
                    "example": "gbp"
                  },
                  "product": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The product the price belongs to."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "recurring",
                      "one_time"
                    ],
                    "description": "The type of the price."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether the price is active."
                  },
                  "default_tax_rate": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The default tax rate for the price."
                  },
                  "default_transfer_destination": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The default transfer destination for the price."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the price."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The metadata for the price."
                  },
                  "recurring": {
                    "type": "object",
                    "properties": {
                      "interval": {
                        "type": "string",
                        "enum": [
                          "month",
                          "week"
                        ],
                        "description": "The interval of the price."
                      },
                      "interval_count": {
                        "type": "integer",
                        "description": "The interval count of the price."
                      }
                    },
                    "description": "The recurring interval for the price."
                  },
                  "tax_behavior": {
                    "type": "string",
                    "enum": [
                      "inclusive",
                      "exclusive",
                      "unspecified"
                    ],
                    "description": "The tax behavior for the price."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "none"
                    ],
                    "description": "The transfer behavior for the price."
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "product",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the price object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "price"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the price is active."
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount of the price, represented as a whole integer."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "default_tax_rate": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default tax rate for the price."
                    },
                    "default_transfer_destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default transfer destination for the price."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the price."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "product": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The product the price belongs to."
                    },
                    "recurring": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week"
                          ],
                          "description": "The interval of the price."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The interval count of the price."
                        }
                      },
                      "required": [
                        "interval",
                        "interval_count"
                      ],
                      "description": "The recurring interval for the price."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the price."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "recurring",
                        "one_time"
                      ],
                      "description": "The type of the price."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "amount",
                    "currency",
                    "default_tax_rate",
                    "default_transfer_destination",
                    "description",
                    "product",
                    "recurring",
                    "transfer_behavior",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "prices_list",
        "summary": "List all prices",
        "description": "List all prices",
        "tags": [
          "Prices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of prices.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "price"
                            ]
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Whether the price is active."
                          },
                          "amount": {
                            "type": "integer",
                            "description": "The amount of the price, represented as a whole integer."
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                            "example": "gbp"
                          },
                          "default_tax_rate": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The default tax rate for the price."
                          },
                          "default_transfer_destination": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The default transfer destination for the price."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the price."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "product": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ],
                            "description": "The product the price belongs to."
                          },
                          "recurring": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "interval": {
                                "type": "string",
                                "enum": [
                                  "month",
                                  "week"
                                ],
                                "description": "The interval of the price."
                              },
                              "interval_count": {
                                "type": "integer",
                                "description": "The interval count of the price."
                              }
                            },
                            "required": [
                              "interval",
                              "interval_count"
                            ],
                            "description": "The recurring interval for the price."
                          },
                          "transfer_behavior": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "owner",
                              "none",
                              null
                            ],
                            "description": "The transfer behavior for the price."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "recurring",
                              "one_time"
                            ],
                            "description": "The type of the price."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "active",
                          "amount",
                          "currency",
                          "default_tax_rate",
                          "default_transfer_destination",
                          "description",
                          "product",
                          "recurring",
                          "transfer_behavior",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/prices/{id}": {
      "get": {
        "operationId": "prices_retrieve",
        "summary": "Retrieve a price",
        "description": "Retrieve a price",
        "tags": [
          "Prices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a price object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "price"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the price is active."
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount of the price, represented as a whole integer."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "default_tax_rate": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default tax rate for the price."
                    },
                    "default_transfer_destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default transfer destination for the price."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the price."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "product": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The product the price belongs to."
                    },
                    "recurring": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week"
                          ],
                          "description": "The interval of the price."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The interval count of the price."
                        }
                      },
                      "required": [
                        "interval",
                        "interval_count"
                      ],
                      "description": "The recurring interval for the price."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the price."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "recurring",
                        "one_time"
                      ],
                      "description": "The type of the price."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "amount",
                    "currency",
                    "default_tax_rate",
                    "default_transfer_destination",
                    "description",
                    "product",
                    "recurring",
                    "transfer_behavior",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "prices_update",
        "summary": "Update a price",
        "description": "Update a price",
        "tags": [
          "Prices"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Whether the price is active."
                  },
                  "default_tax_rate": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The default tax rate for the price."
                  },
                  "default_transfer_destination": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The default transfer destination for the price."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the price."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The metadata for the price."
                  },
                  "tax_behavior": {
                    "type": "string",
                    "enum": [
                      "inclusive",
                      "exclusive",
                      "unspecified"
                    ],
                    "description": "The tax behavior for the price."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "owner",
                      "none"
                    ],
                    "description": "The transfer behavior for the price."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the price."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the price object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "price"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the price is active."
                    },
                    "amount": {
                      "type": "integer",
                      "description": "The amount of the price, represented as a whole integer."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "default_tax_rate": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default tax rate for the price."
                    },
                    "default_transfer_destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default transfer destination for the price."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the price."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "product": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The product the price belongs to."
                    },
                    "recurring": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week"
                          ],
                          "description": "The interval of the price."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The interval count of the price."
                        }
                      },
                      "required": [
                        "interval",
                        "interval_count"
                      ],
                      "description": "The recurring interval for the price."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the price."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "recurring",
                        "one_time"
                      ],
                      "description": "The type of the price."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "amount",
                    "currency",
                    "default_tax_rate",
                    "default_transfer_destination",
                    "description",
                    "product",
                    "recurring",
                    "transfer_behavior",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/products": {
      "post": {
        "operationId": "products_create",
        "summary": "Create a product",
        "description": "Create a product",
        "tags": [
          "Products"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the product."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether the product is active."
                  },
                  "default_price_data": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "description": "The amount of the price, represented as a whole integer."
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "gbp",
                          "usd",
                          "eur",
                          "sek"
                        ],
                        "description": "The currency of the price.",
                        "example": "gbp"
                      },
                      "default_tax_rate": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_]+$",
                        "description": "The default tax rate for the price."
                      },
                      "default_transfer_destination": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_]+$",
                        "description": "The default transfer destination for the price."
                      },
                      "description": {
                        "type": "string",
                        "description": "The description of the price."
                      },
                      "recurring": {
                        "type": "object",
                        "properties": {
                          "interval": {
                            "type": "string",
                            "enum": [
                              "month",
                              "week"
                            ],
                            "description": "The interval of the price."
                          },
                          "interval_count": {
                            "type": "integer",
                            "description": "The interval count of the price."
                          }
                        },
                        "description": "The recurring interval for the price."
                      },
                      "transfer_behavior": {
                        "type": "string",
                        "enum": [
                          "owner",
                          "none"
                        ],
                        "description": "The transfer behavior for the price."
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "recurring",
                          "one_time"
                        ],
                        "description": "The type of the price."
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "type"
                    ],
                    "description": "The default price data for the product."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the product."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "statement_descriptor": {
                    "type": "string",
                    "description": "The statement descriptor for the product."
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the product object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the product is active."
                    },
                    "default_price": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default price for the product."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the product."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the product."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor for the product."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "default_price",
                    "description",
                    "name",
                    "statement_descriptor"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "products_list",
        "summary": "List all products",
        "description": "List all products",
        "tags": [
          "Products"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of products.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "product"
                            ]
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Whether the product is active."
                          },
                          "default_price": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The default price for the product."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the product."
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the product."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "statement_descriptor": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The statement descriptor for the product."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "active",
                          "default_price",
                          "description",
                          "name",
                          "statement_descriptor"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/products/{id}": {
      "get": {
        "operationId": "products_retrieve",
        "summary": "Retrieve a product",
        "description": "Retrieve a product",
        "tags": [
          "Products"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a product object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the product is active."
                    },
                    "default_price": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default price for the product."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the product."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the product."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor for the product."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "default_price",
                    "description",
                    "name",
                    "statement_descriptor"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "products_update",
        "summary": "Update a product",
        "description": "Update a product",
        "tags": [
          "Products"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Whether the product is active."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the product."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "statement_descriptor": {
                    "type": "string",
                    "description": "The statement descriptor for the product."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the product."
                  },
                  "default_price": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The price ID to set as the default price for the product."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the product object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the product is active."
                    },
                    "default_price": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The default price for the product."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the product."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the product."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor for the product."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "default_price",
                    "description",
                    "name",
                    "statement_descriptor"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscription_items": {
      "post": {
        "operationId": "subscription_items_create",
        "summary": "Create a subscription item",
        "description": "Create a subscription item",
        "tags": [
          "Subscription Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "The description of the subscription item."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs to attach to the subscription item."
                  },
                  "price": {
                    "type": "string",
                    "description": "The identifier of the price to use for the subscription item."
                  },
                  "price_data": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "description": "The amount of the price."
                      },
                      "currency": {
                        "type": "string",
                        "description": "The currency of the price."
                      },
                      "tax_percent": {
                        "type": "number",
                        "description": "The tax percentage to apply to the price."
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "tax_percent"
                    ],
                    "description": "The price data for the subscription item."
                  },
                  "proration_behavior": {
                    "type": "string",
                    "enum": [
                      "create_prorations",
                      "none"
                    ],
                    "description": "Whether to create prorations when creating the subscription item."
                  },
                  "schedule": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount for the scheduled change."
                        },
                        "effective_at": {
                          "type": "integer",
                          "description": "The date the scheduled change takes effect."
                        },
                        "effective_at_config": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month the scheduled change takes effect."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month the scheduled change takes effect."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year the scheduled change takes effect."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the effective date of the scheduled change."
                        }
                      },
                      "required": [
                        "amount"
                      ]
                    },
                    "description": "The schedule for the subscription item."
                  },
                  "subscription": {
                    "type": "string",
                    "description": "The identifier of the subscription to create the item for."
                  },
                  "tax_rate": {
                    "type": "string",
                    "description": "The identifier of the tax rate for the subscription item."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "owner",
                      "none"
                    ],
                    "description": "The transfer behavior for the subscription item."
                  },
                  "transfer_destination": {
                    "type": "string",
                    "description": "The identifier of the connected account to transfer funds to."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "charge",
                      "rent",
                      "product"
                    ],
                    "description": "The type of the subscription item."
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the unit associated with the subscription item."
                  }
                },
                "required": [
                  "price_data",
                  "subscription",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a subscription item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription_item"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription item."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription item."
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the price for the subscription item."
                    },
                    "price_data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The amount of the price."
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "usd",
                            "eur",
                            "sek"
                          ],
                          "description": "The currency of the price.",
                          "example": "gbp"
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The billing interval for the price."
                            },
                            "interval_count": {
                              "type": "number",
                              "description": "The number of intervals between each billing cycle."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ],
                          "description": "The recurring settings for the price."
                        },
                        "tax_percent": {
                          "type": "number",
                          "description": "The tax percentage to apply to the price."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ],
                      "description": "The price data for the subscription item."
                    },
                    "schedule": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "description": "The amount for the scheduled change."
                          },
                          "effective_at": {
                            "type": "integer",
                            "description": "The date the scheduled change takes effect."
                          }
                        },
                        "required": [
                          "amount",
                          "effective_at"
                        ]
                      },
                      "description": "The schedule for the subscription item."
                    },
                    "subscription": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the subscription the item belongs to."
                    },
                    "tax_rate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the tax rate for the subscription item."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the subscription item."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the connected account to transfer funds to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the subscription item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the unit associated with the subscription item."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "description",
                    "price",
                    "price_data",
                    "schedule",
                    "subscription",
                    "tax_rate",
                    "transfer_behavior",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "subscription_items_list",
        "summary": "List all subscription items",
        "description": "List all subscription items",
        "tags": [
          "Subscription Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all subscription items",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "subscription_item"
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the subscription item."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs attached to the subscription item."
                          },
                          "price": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the price for the subscription item."
                          },
                          "price_data": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "description": "The amount of the price."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency of the price.",
                                "example": "gbp"
                              },
                              "recurring": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "interval": {
                                    "type": "string",
                                    "description": "The billing interval for the price."
                                  },
                                  "interval_count": {
                                    "type": "number",
                                    "description": "The number of intervals between each billing cycle."
                                  }
                                },
                                "required": [
                                  "interval",
                                  "interval_count"
                                ],
                                "description": "The recurring settings for the price."
                              },
                              "tax_percent": {
                                "type": "number",
                                "description": "The tax percentage to apply to the price."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "recurring",
                                  "one_time"
                                ],
                                "description": "The type of the price."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "recurring",
                              "tax_percent",
                              "type"
                            ],
                            "description": "The price data for the subscription item."
                          },
                          "schedule": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "description": "The amount for the scheduled change."
                                },
                                "effective_at": {
                                  "type": "integer",
                                  "description": "The date the scheduled change takes effect."
                                }
                              },
                              "required": [
                                "amount",
                                "effective_at"
                              ]
                            },
                            "description": "The schedule for the subscription item."
                          },
                          "subscription": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the subscription the item belongs to."
                          },
                          "tax_rate": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the tax rate for the subscription item."
                          },
                          "transfer_behavior": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "automatic",
                              "owner",
                              "none",
                              null
                            ],
                            "description": "The transfer behavior for the subscription item."
                          },
                          "transfer_destination": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the connected account to transfer funds to."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "charge",
                              "rent",
                              "product"
                            ],
                            "description": "The type of the subscription item."
                          },
                          "unit": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the unit associated with the subscription item."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "description",
                          "price",
                          "price_data",
                          "schedule",
                          "subscription",
                          "tax_rate",
                          "transfer_behavior",
                          "transfer_destination",
                          "type",
                          "unit"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscription_items/{id}": {
      "get": {
        "operationId": "subscription_items_retrieve",
        "summary": "Retrieve a subscription item",
        "description": "Retrieve a subscription item",
        "tags": [
          "Subscription Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a subscription item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription_item"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription item."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription item."
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the price for the subscription item."
                    },
                    "price_data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The amount of the price."
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "usd",
                            "eur",
                            "sek"
                          ],
                          "description": "The currency of the price.",
                          "example": "gbp"
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The billing interval for the price."
                            },
                            "interval_count": {
                              "type": "number",
                              "description": "The number of intervals between each billing cycle."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ],
                          "description": "The recurring settings for the price."
                        },
                        "tax_percent": {
                          "type": "number",
                          "description": "The tax percentage to apply to the price."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ],
                      "description": "The price data for the subscription item."
                    },
                    "schedule": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "description": "The amount for the scheduled change."
                          },
                          "effective_at": {
                            "type": "integer",
                            "description": "The date the scheduled change takes effect."
                          }
                        },
                        "required": [
                          "amount",
                          "effective_at"
                        ]
                      },
                      "description": "The schedule for the subscription item."
                    },
                    "subscription": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the subscription the item belongs to."
                    },
                    "tax_rate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the tax rate for the subscription item."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the subscription item."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the connected account to transfer funds to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the subscription item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the unit associated with the subscription item."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "description",
                    "price",
                    "price_data",
                    "schedule",
                    "subscription",
                    "tax_rate",
                    "transfer_behavior",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "subscription_items_update",
        "summary": "Update a subscription item",
        "description": "Update a subscription item",
        "tags": [
          "Subscription Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "The description of the subscription item."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs to attach to the subscription item."
                  },
                  "price_data": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "description": "The amount of the price."
                      },
                      "tax_percent": {
                        "type": "number",
                        "description": "The tax percentage to apply to the price."
                      }
                    },
                    "required": [
                      "amount",
                      "tax_percent"
                    ],
                    "description": "The price data for the subscription item."
                  },
                  "proration_behavior": {
                    "type": "string",
                    "enum": [
                      "create_prorations",
                      "none"
                    ],
                    "description": "Whether to create prorations when updating the subscription item."
                  },
                  "schedule": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount for the scheduled change."
                        },
                        "effective_at": {
                          "type": "integer",
                          "description": "The date the scheduled change takes effect."
                        },
                        "effective_at_config": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month the scheduled change takes effect."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month the scheduled change takes effect."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year the scheduled change takes effect."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the effective date of the scheduled change."
                        }
                      },
                      "required": [
                        "amount"
                      ]
                    },
                    "description": "The schedule for the subscription item."
                  },
                  "tax_rate": {
                    "type": "string",
                    "description": "The identifier of the tax rate for the subscription item."
                  },
                  "transfer_behavior": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "owner",
                      "none"
                    ],
                    "description": "The transfer behavior for the subscription item."
                  },
                  "transfer_destination": {
                    "type": "string",
                    "description": "The identifier of the connected account to transfer funds to."
                  }
                },
                "required": [
                  "price_data"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update a subscription item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription_item"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription item."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription item."
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the price for the subscription item."
                    },
                    "price_data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The amount of the price."
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "usd",
                            "eur",
                            "sek"
                          ],
                          "description": "The currency of the price.",
                          "example": "gbp"
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The billing interval for the price."
                            },
                            "interval_count": {
                              "type": "number",
                              "description": "The number of intervals between each billing cycle."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ],
                          "description": "The recurring settings for the price."
                        },
                        "tax_percent": {
                          "type": "number",
                          "description": "The tax percentage to apply to the price."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ],
                      "description": "The price data for the subscription item."
                    },
                    "schedule": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "description": "The amount for the scheduled change."
                          },
                          "effective_at": {
                            "type": "integer",
                            "description": "The date the scheduled change takes effect."
                          }
                        },
                        "required": [
                          "amount",
                          "effective_at"
                        ]
                      },
                      "description": "The schedule for the subscription item."
                    },
                    "subscription": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the subscription the item belongs to."
                    },
                    "tax_rate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the tax rate for the subscription item."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the subscription item."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the connected account to transfer funds to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the subscription item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the unit associated with the subscription item."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "description",
                    "price",
                    "price_data",
                    "schedule",
                    "subscription",
                    "tax_rate",
                    "transfer_behavior",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "subscription_items_delete",
        "summary": "Delete a subscription item",
        "description": "Delete a subscription item",
        "tags": [
          "Subscription Items"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Delete a subscription item",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription_item"
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription item."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription item."
                    },
                    "price": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the price for the subscription item."
                    },
                    "price_data": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The amount of the price."
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "usd",
                            "eur",
                            "sek"
                          ],
                          "description": "The currency of the price.",
                          "example": "gbp"
                        },
                        "recurring": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "interval": {
                              "type": "string",
                              "description": "The billing interval for the price."
                            },
                            "interval_count": {
                              "type": "number",
                              "description": "The number of intervals between each billing cycle."
                            }
                          },
                          "required": [
                            "interval",
                            "interval_count"
                          ],
                          "description": "The recurring settings for the price."
                        },
                        "tax_percent": {
                          "type": "number",
                          "description": "The tax percentage to apply to the price."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "recurring",
                            "one_time"
                          ],
                          "description": "The type of the price."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "recurring",
                        "tax_percent",
                        "type"
                      ],
                      "description": "The price data for the subscription item."
                    },
                    "schedule": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "description": "The amount for the scheduled change."
                          },
                          "effective_at": {
                            "type": "integer",
                            "description": "The date the scheduled change takes effect."
                          }
                        },
                        "required": [
                          "amount",
                          "effective_at"
                        ]
                      },
                      "description": "The schedule for the subscription item."
                    },
                    "subscription": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the subscription the item belongs to."
                    },
                    "tax_rate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the tax rate for the subscription item."
                    },
                    "transfer_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "owner",
                        "none",
                        null
                      ],
                      "description": "The transfer behavior for the subscription item."
                    },
                    "transfer_destination": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the connected account to transfer funds to."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "charge",
                        "rent",
                        "product"
                      ],
                      "description": "The type of the subscription item."
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the unit associated with the subscription item."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "description",
                    "price",
                    "price_data",
                    "schedule",
                    "subscription",
                    "tax_rate",
                    "transfer_behavior",
                    "transfer_destination",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscriptions": {
      "post": {
        "operationId": "subscriptions_create",
        "summary": "Create a subscription",
        "description": "Create a subscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "add_invoice_items": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "description": {
                          "type": "string",
                          "description": "The description for the invoice item, to be displayed to the customer."
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "price": {
                          "type": "string",
                          "description": "The ID of the price object."
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "tax_rate": {
                          "type": "string",
                          "description": "The ID of the tax rate object."
                        },
                        "transfer_behavior": {
                          "type": "string",
                          "enum": [
                            "automatic",
                            "owner",
                            "none"
                          ],
                          "description": "The invoice item transfer behavior. The default is automatic."
                        },
                        "transfer_destination": {
                          "type": "string",
                          "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "charge",
                            "rent",
                            "product"
                          ],
                          "description": "The type of the invoice item."
                        },
                        "unit": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The ID of the unit the invoice item is for."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "description",
                        "tax_percent",
                        "transfer_behavior",
                        "type"
                      ]
                    },
                    "maxItems": 10,
                    "description": "A list of invoice items to add to invoices created by the subscription."
                  },
                  "billing_anchor": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The reference point that aligns future billing cycle dates."
                  },
                  "billing_anchor_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day_of_month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month to anchor billing to."
                      }
                    },
                    "required": [
                      "day_of_month"
                    ],
                    "description": "Configuration for the billing anchor."
                  },
                  "collection_method": {
                    "type": "string",
                    "enum": [
                      "charge_automatically",
                      "send_invoice"
                    ],
                    "description": "The collection method for the subscription."
                  },
                  "coupon": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the coupon to apply to the subscription."
                  },
                  "custom_fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 30,
                          "description": "The name of the custom field."
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 30,
                          "description": "The value of the custom field."
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    },
                    "maxItems": 4,
                    "description": "Custom fields attached to the subscription invoices."
                  },
                  "days_before_collection": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 7,
                    "description": "The number of days before the due date to attempt collection."
                  },
                  "days_until_due": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "description": "The number of days until the invoice is due."
                  },
                  "default_payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the default payment method for the subscription."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the subscription."
                  },
                  "end_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The end date of the subscription."
                  },
                  "end_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month for the end date."
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12,
                        "description": "The month for the end date."
                      },
                      "year": {
                        "type": "integer",
                        "description": "The year for the end date."
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "Configuration to compute the end date of the subscription."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs to attach to the subscription."
                  },
                  "payment_settings": {
                    "type": "object",
                    "properties": {
                      "payment_method_types": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "autogiro",
                            "bacs_debit",
                            "card",
                            "card_present",
                            "bank_transfer",
                            "direct_transfer",
                            "gbp_credit_transfer",
                            "pay_by_bank",
                            "sepa_debit"
                          ]
                        },
                        "minItems": 1,
                        "description": "The payment method types allowed for the subscription."
                      }
                    },
                    "required": [
                      "payment_method_types"
                    ],
                    "description": "The payment settings for the subscription."
                  },
                  "phases": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "start_date": {
                          "type": "integer",
                          "description": "The start date of the phase."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items in the phase."
                        }
                      },
                      "required": [
                        "start_date",
                        "items"
                      ]
                    },
                    "minItems": 1,
                    "description": "The phases of the subscription. Required when interval is custom."
                  },
                  "start_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The start date of the subscription."
                  },
                  "start_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month for the start date."
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12,
                        "description": "The month for the start date."
                      },
                      "year": {
                        "type": "integer",
                        "description": "The year for the start date."
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "Configuration to compute the start date of the subscription."
                  },
                  "application": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the application to associate with the subscription."
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek"
                    ],
                    "description": "The currency of the subscription. Required when application is not provided.",
                    "example": "gbp"
                  },
                  "customer": {
                    "type": "string",
                    "description": "The identifier of the customer to create the subscription for."
                  },
                  "first_invoice_creation": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "immediately",
                      null
                    ],
                    "description": "Whether to create the first invoice immediately."
                  },
                  "from_subscription": {
                    "type": "object",
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "revision"
                        ],
                        "description": "The action to perform on the source subscription."
                      },
                      "subscription": {
                        "type": "string",
                        "description": "The identifier of the source subscription."
                      }
                    },
                    "required": [
                      "action",
                      "subscription"
                    ],
                    "description": "Create the subscription as a revision of an existing subscription."
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "month",
                      "week",
                      "custom"
                    ],
                    "description": "The billing interval for the subscription."
                  },
                  "interval_count": {
                    "type": "integer",
                    "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                  },
                  "invoice_settings": {
                    "type": "object",
                    "properties": {
                      "custom_fields": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 40,
                              "description": "The name of the custom field."
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 140,
                              "description": "The value of the custom field."
                            }
                          },
                          "required": [
                            "name",
                            "value"
                          ]
                        },
                        "maxItems": 4,
                        "description": "Custom fields to include on invoices."
                      }
                    },
                    "description": "The invoice settings for the subscription."
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "description": "The description of the subscription item."
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs to attach to the subscription item."
                        },
                        "price": {
                          "type": "string",
                          "description": "The identifier of the price to use for the subscription item."
                        },
                        "price_data": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "number",
                              "description": "The amount of the price."
                            },
                            "currency": {
                              "type": "string",
                              "description": "The currency of the price."
                            },
                            "tax_percent": {
                              "type": "number",
                              "description": "The tax percentage to apply to the price."
                            }
                          },
                          "required": [
                            "amount",
                            "currency",
                            "tax_percent"
                          ],
                          "description": "The price data for the subscription item."
                        },
                        "proration_behavior": {
                          "type": "string",
                          "enum": [
                            "create_prorations",
                            "none"
                          ],
                          "description": "Whether to create prorations when creating the subscription item."
                        },
                        "schedule": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount for the scheduled change."
                              },
                              "effective_at": {
                                "type": "integer",
                                "description": "The date the scheduled change takes effect."
                              },
                              "effective_at_config": {
                                "type": "object",
                                "properties": {
                                  "day": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 31,
                                    "description": "The day of the month the scheduled change takes effect."
                                  },
                                  "month": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 12,
                                    "description": "The month the scheduled change takes effect."
                                  },
                                  "year": {
                                    "type": "integer",
                                    "description": "The year the scheduled change takes effect."
                                  }
                                },
                                "required": [
                                  "day",
                                  "month",
                                  "year"
                                ],
                                "description": "Configuration to compute the effective date of the scheduled change."
                              }
                            },
                            "required": [
                              "amount"
                            ]
                          },
                          "description": "The schedule for the subscription item."
                        },
                        "tax_rate": {
                          "type": "string",
                          "description": "The identifier of the tax rate for the subscription item."
                        },
                        "transfer_behavior": {
                          "type": "string",
                          "enum": [
                            "automatic",
                            "owner",
                            "none"
                          ],
                          "description": "The transfer behavior for the subscription item."
                        },
                        "transfer_destination": {
                          "type": "string",
                          "description": "The identifier of the connected account to transfer funds to."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "charge",
                            "rent",
                            "product"
                          ],
                          "description": "The type of the subscription item."
                        },
                        "unit": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the unit associated with the subscription item."
                        }
                      },
                      "required": [
                        "price_data",
                        "type"
                      ]
                    },
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "The items for the subscription. Required when interval is not custom."
                  },
                  "use_future_billing_date": {
                    "type": "boolean",
                    "description": "Whether to use a future billing date for the first invoice."
                  }
                },
                "required": [
                  "collection_method",
                  "customer",
                  "interval"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the subscription object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription"
                      ]
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the application associated with the subscription."
                    },
                    "billing_anchor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The reference point that aligns future billing cycle dates."
                    },
                    "billing_anchor_config": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "day_of_month": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "description": "The day of the month to anchor billing to."
                        }
                      },
                      "required": [
                        "day_of_month"
                      ],
                      "description": "Configuration for the billing anchor."
                    },
                    "cancel_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date at which the subscription will be automatically canceled."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date the subscription was canceled."
                    },
                    "collection_method": {
                      "type": "string",
                      "enum": [
                        "charge_automatically",
                        "send_invoice"
                      ],
                      "description": "The collection method for the subscription."
                    },
                    "coupon": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the coupon applied to the subscription."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency of the subscription.",
                      "example": "gbp"
                    },
                    "current_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the current billing period."
                    },
                    "current_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the current billing period."
                    },
                    "custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40,
                            "description": "The name of the custom field."
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140,
                            "description": "The value of the custom field."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4,
                      "description": "Custom fields attached to the subscription invoices."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        }
                      ],
                      "description": "The customer associated with the subscription."
                    },
                    "days_before_collection": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 7,
                      "description": "The number of days before the due date to attempt collection."
                    },
                    "days_until_due": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The number of days until the invoice is due."
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the default payment method for the subscription."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription."
                    },
                    "end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the subscription."
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "month",
                        "week",
                        "custom"
                      ],
                      "description": "The billing interval for the subscription."
                    },
                    "interval_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The number of intervals between each billing cycle."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription."
                    },
                    "next_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the next billing period."
                    },
                    "next_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the next billing period."
                    },
                    "pause_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "mark_uncollectible",
                            "void"
                          ],
                          "description": "The behavior to apply to invoices while collection is paused."
                        },
                        "resumes_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The date at which collection will resume."
                        }
                      },
                      "required": [
                        "behavior",
                        "resumes_at"
                      ],
                      "description": "The pause collection settings for the subscription."
                    },
                    "payment_settings": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "payment_method_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          },
                          "description": "The payment method types allowed for the subscription."
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ],
                      "description": "The payment settings for the subscription."
                    },
                    "phases": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_date": {
                            "type": "integer",
                            "description": "The start date of the phase."
                          },
                          "items": {
                            "type": "array",
                            "items": {},
                            "description": "The items in the phase."
                          }
                        },
                        "required": [
                          "start_date",
                          "items"
                        ]
                      },
                      "description": "The phases of the subscription."
                    },
                    "start": {
                      "type": "integer",
                      "description": "The start date of the subscription."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "canceled",
                        "complete",
                        "scheduled"
                      ],
                      "description": "The status of the subscription."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "billing_anchor",
                    "billing_anchor_config",
                    "cancel_at",
                    "canceled_at",
                    "collection_method",
                    "coupon",
                    "currency",
                    "current_period_end",
                    "current_period_start",
                    "custom_fields",
                    "customer",
                    "days_before_collection",
                    "days_until_due",
                    "default_payment_method",
                    "description",
                    "end",
                    "interval",
                    "interval_count",
                    "next_period_end",
                    "next_period_start",
                    "pause_collection",
                    "payment_settings",
                    "phases",
                    "start",
                    "status"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "subscriptions_list",
        "summary": "List all subscriptions",
        "description": "A list object with a data property that contains an array of subscriptions.",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A list object with a data property that contains an array of subscriptions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "subscription"
                            ]
                          },
                          "application": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The identifier of the application associated with the subscription."
                          },
                          "billing_anchor": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The reference point that aligns future billing cycle dates."
                          },
                          "billing_anchor_config": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "day_of_month": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 31,
                                "description": "The day of the month to anchor billing to."
                              }
                            },
                            "required": [
                              "day_of_month"
                            ],
                            "description": "Configuration for the billing anchor."
                          },
                          "cancel_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date at which the subscription will be automatically canceled."
                          },
                          "canceled_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date the subscription was canceled."
                          },
                          "collection_method": {
                            "type": "string",
                            "enum": [
                              "charge_automatically",
                              "send_invoice"
                            ],
                            "description": "The collection method for the subscription."
                          },
                          "coupon": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The identifier of the coupon applied to the subscription."
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "The currency of the subscription.",
                            "example": "gbp"
                          },
                          "current_period_end": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The end of the current billing period."
                          },
                          "current_period_start": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The start of the current billing period."
                          },
                          "custom_fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "maxLength": 40,
                                  "description": "The name of the custom field."
                                },
                                "value": {
                                  "type": "string",
                                  "maxLength": 140,
                                  "description": "The value of the custom field."
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ]
                            },
                            "maxItems": 4,
                            "description": "Custom fields attached to the subscription invoices."
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "customer"
                                    ]
                                  },
                                  "address": {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "default_payment_method": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delinquent": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "email": {
                                    "type": "string",
                                    "format": "email"
                                  },
                                  "invoice_prefix": {
                                    "type": "string"
                                  },
                                  "invoicing": {
                                    "type": "object",
                                    "properties": {
                                      "arrears_emails": {
                                        "type": "boolean"
                                      },
                                      "email_cc": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "email"
                                        }
                                      },
                                      "email_to": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "format": "email"
                                      }
                                    },
                                    "required": [
                                      "arrears_emails",
                                      "email_cc"
                                    ]
                                  },
                                  "legal": {
                                    "type": "object",
                                    "properties": {
                                      "dob": {
                                        "type": "object",
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "first_name",
                                      "last_name"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "radar": {
                                    "type": "object",
                                    "properties": {
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "reason": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "risk_level": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "message",
                                      "reason",
                                      "risk_level"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "address",
                                  "default_payment_method",
                                  "delinquent",
                                  "description",
                                  "email",
                                  "invoice_prefix",
                                  "invoicing",
                                  "legal",
                                  "name",
                                  "phone",
                                  "radar"
                                ]
                              }
                            ],
                            "description": "The customer associated with the subscription."
                          },
                          "days_before_collection": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "maximum": 7,
                            "description": "The number of days before the due date to attempt collection."
                          },
                          "days_until_due": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "minimum": 0,
                            "description": "The number of days until the invoice is due."
                          },
                          "default_payment_method": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The identifier of the default payment method for the subscription."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the subscription."
                          },
                          "end": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The end date of the subscription."
                          },
                          "interval": {
                            "type": "string",
                            "enum": [
                              "month",
                              "week",
                              "custom"
                            ],
                            "description": "The billing interval for the subscription."
                          },
                          "interval_count": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The number of intervals between each billing cycle."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs attached to the subscription."
                          },
                          "next_period_end": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The end of the next billing period."
                          },
                          "next_period_start": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The start of the next billing period."
                          },
                          "pause_collection": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "behavior": {
                                "type": "string",
                                "enum": [
                                  "draft",
                                  "mark_uncollectible",
                                  "void"
                                ],
                                "description": "The behavior to apply to invoices while collection is paused."
                              },
                              "resumes_at": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "The date at which collection will resume."
                              }
                            },
                            "required": [
                              "behavior",
                              "resumes_at"
                            ],
                            "description": "The pause collection settings for the subscription."
                          },
                          "payment_settings": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "payment_method_types": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "autogiro",
                                    "bacs_debit",
                                    "card",
                                    "card_present",
                                    "bank_transfer",
                                    "direct_transfer",
                                    "gbp_credit_transfer",
                                    "pay_by_bank",
                                    "sepa_debit"
                                  ]
                                },
                                "description": "The payment method types allowed for the subscription."
                              }
                            },
                            "required": [
                              "payment_method_types"
                            ],
                            "description": "The payment settings for the subscription."
                          },
                          "phases": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "object",
                              "properties": {
                                "start_date": {
                                  "type": "integer",
                                  "description": "The start date of the phase."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {},
                                  "description": "The items in the phase."
                                }
                              },
                              "required": [
                                "start_date",
                                "items"
                              ]
                            },
                            "description": "The phases of the subscription."
                          },
                          "start": {
                            "type": "integer",
                            "description": "The start date of the subscription."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "canceled",
                              "complete",
                              "scheduled"
                            ],
                            "description": "The status of the subscription."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "application",
                          "billing_anchor",
                          "billing_anchor_config",
                          "cancel_at",
                          "canceled_at",
                          "collection_method",
                          "coupon",
                          "currency",
                          "current_period_end",
                          "current_period_start",
                          "custom_fields",
                          "customer",
                          "days_before_collection",
                          "days_until_due",
                          "default_payment_method",
                          "description",
                          "end",
                          "interval",
                          "interval_count",
                          "next_period_end",
                          "next_period_start",
                          "pause_collection",
                          "payment_settings",
                          "phases",
                          "start",
                          "status"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscriptions/{id}": {
      "get": {
        "operationId": "subscriptions_retrieve",
        "summary": "Retrieve a subscription",
        "description": "Retrieve a subscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a subscription object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription"
                      ]
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the application associated with the subscription."
                    },
                    "billing_anchor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The reference point that aligns future billing cycle dates."
                    },
                    "billing_anchor_config": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "day_of_month": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "description": "The day of the month to anchor billing to."
                        }
                      },
                      "required": [
                        "day_of_month"
                      ],
                      "description": "Configuration for the billing anchor."
                    },
                    "cancel_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date at which the subscription will be automatically canceled."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date the subscription was canceled."
                    },
                    "collection_method": {
                      "type": "string",
                      "enum": [
                        "charge_automatically",
                        "send_invoice"
                      ],
                      "description": "The collection method for the subscription."
                    },
                    "coupon": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the coupon applied to the subscription."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency of the subscription.",
                      "example": "gbp"
                    },
                    "current_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the current billing period."
                    },
                    "current_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the current billing period."
                    },
                    "custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40,
                            "description": "The name of the custom field."
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140,
                            "description": "The value of the custom field."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4,
                      "description": "Custom fields attached to the subscription invoices."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        }
                      ],
                      "description": "The customer associated with the subscription."
                    },
                    "days_before_collection": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 7,
                      "description": "The number of days before the due date to attempt collection."
                    },
                    "days_until_due": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The number of days until the invoice is due."
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the default payment method for the subscription."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription."
                    },
                    "end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the subscription."
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "month",
                        "week",
                        "custom"
                      ],
                      "description": "The billing interval for the subscription."
                    },
                    "interval_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The number of intervals between each billing cycle."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription."
                    },
                    "next_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the next billing period."
                    },
                    "next_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the next billing period."
                    },
                    "pause_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "mark_uncollectible",
                            "void"
                          ],
                          "description": "The behavior to apply to invoices while collection is paused."
                        },
                        "resumes_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The date at which collection will resume."
                        }
                      },
                      "required": [
                        "behavior",
                        "resumes_at"
                      ],
                      "description": "The pause collection settings for the subscription."
                    },
                    "payment_settings": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "payment_method_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          },
                          "description": "The payment method types allowed for the subscription."
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ],
                      "description": "The payment settings for the subscription."
                    },
                    "phases": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_date": {
                            "type": "integer",
                            "description": "The start date of the phase."
                          },
                          "items": {
                            "type": "array",
                            "items": {},
                            "description": "The items in the phase."
                          }
                        },
                        "required": [
                          "start_date",
                          "items"
                        ]
                      },
                      "description": "The phases of the subscription."
                    },
                    "start": {
                      "type": "integer",
                      "description": "The start date of the subscription."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "canceled",
                        "complete",
                        "scheduled"
                      ],
                      "description": "The status of the subscription."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "billing_anchor",
                    "billing_anchor_config",
                    "cancel_at",
                    "canceled_at",
                    "collection_method",
                    "coupon",
                    "currency",
                    "current_period_end",
                    "current_period_start",
                    "custom_fields",
                    "customer",
                    "days_before_collection",
                    "days_until_due",
                    "default_payment_method",
                    "description",
                    "end",
                    "interval",
                    "interval_count",
                    "next_period_end",
                    "next_period_start",
                    "pause_collection",
                    "payment_settings",
                    "phases",
                    "start",
                    "status"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "subscriptions_update",
        "summary": "Update a subscription",
        "description": "Update a subscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "add_invoice_items": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "description": "The amount to be charged, represented as a whole integer if possible."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                        },
                        "description": {
                          "type": "string",
                          "description": "The description for the invoice item, to be displayed to the customer."
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "price": {
                          "type": "string",
                          "description": "The ID of the price object."
                        },
                        "tax_percent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The tax percentage to use when calculating the tax amount."
                        },
                        "tax_rate": {
                          "type": "string",
                          "description": "The ID of the tax rate object."
                        },
                        "transfer_behavior": {
                          "type": "string",
                          "enum": [
                            "automatic",
                            "owner",
                            "none"
                          ],
                          "description": "The invoice item transfer behavior. The default is automatic."
                        },
                        "transfer_destination": {
                          "type": "string",
                          "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "charge",
                            "rent",
                            "product"
                          ],
                          "description": "The type of the invoice item."
                        },
                        "unit": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The ID of the unit the invoice item is for."
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "description",
                        "tax_percent",
                        "transfer_behavior",
                        "type"
                      ]
                    },
                    "maxItems": 10,
                    "description": "A list of invoice items to add to invoices created by the subscription."
                  },
                  "billing_anchor": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The reference point that aligns future billing cycle dates."
                  },
                  "billing_anchor_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day_of_month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month to anchor billing to."
                      }
                    },
                    "required": [
                      "day_of_month"
                    ],
                    "description": "Configuration for the billing anchor."
                  },
                  "collection_method": {
                    "type": "string",
                    "enum": [
                      "charge_automatically",
                      "send_invoice"
                    ],
                    "description": "The collection method for the subscription."
                  },
                  "coupon": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the coupon to apply to the subscription."
                  },
                  "custom_fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 30,
                          "description": "The name of the custom field."
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 30,
                          "description": "The value of the custom field."
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    },
                    "maxItems": 4,
                    "description": "Custom fields attached to the subscription invoices."
                  },
                  "days_before_collection": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 7,
                    "description": "The number of days before the due date to attempt collection."
                  },
                  "days_until_due": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "description": "The number of days until the invoice is due."
                  },
                  "default_payment_method": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The identifier of the default payment method for the subscription."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the subscription."
                  },
                  "end_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The end date of the subscription."
                  },
                  "end_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month for the end date."
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12,
                        "description": "The month for the end date."
                      },
                      "year": {
                        "type": "integer",
                        "description": "The year for the end date."
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "Configuration to compute the end date of the subscription."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs to attach to the subscription."
                  },
                  "payment_settings": {
                    "type": "object",
                    "properties": {
                      "payment_method_types": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "autogiro",
                            "bacs_debit",
                            "card",
                            "card_present",
                            "bank_transfer",
                            "direct_transfer",
                            "gbp_credit_transfer",
                            "pay_by_bank",
                            "sepa_debit"
                          ]
                        },
                        "minItems": 1,
                        "description": "The payment method types allowed for the subscription."
                      }
                    },
                    "required": [
                      "payment_method_types"
                    ],
                    "description": "The payment settings for the subscription."
                  },
                  "phases": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "start_date": {
                          "type": "integer",
                          "description": "The start date of the phase."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items in the phase."
                        }
                      },
                      "required": [
                        "start_date",
                        "items"
                      ]
                    },
                    "minItems": 1,
                    "description": "The phases of the subscription. Required when interval is custom."
                  },
                  "start_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The start date of the subscription."
                  },
                  "start_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31,
                        "description": "The day of the month for the start date."
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12,
                        "description": "The month for the start date."
                      },
                      "year": {
                        "type": "integer",
                        "description": "The year for the start date."
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "Configuration to compute the start date of the subscription."
                  },
                  "billing_cycle_reset": {
                    "type": "boolean",
                    "description": "Whether to reset the billing cycle anchor to the current time."
                  },
                  "cancel_at": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The date at which the subscription should be automatically canceled."
                  },
                  "credit_note_data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "customer_balance",
                          "out_of_band",
                          "refund"
                        ],
                        "description": "The type of credit note to create."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "description": "The credit note data for the subscription cancellation."
                  },
                  "pause_collection": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "behavior": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "mark_uncollectible",
                          "void"
                        ],
                        "description": "The behavior to apply to invoices while collection is paused."
                      },
                      "resumes_at": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The date at which collection will resume."
                      }
                    },
                    "required": [
                      "behavior",
                      "resumes_at"
                    ],
                    "description": "The pause collection settings for the subscription."
                  },
                  "proration_behavior": {
                    "type": "string",
                    "enum": [
                      "create_prorations",
                      "none"
                    ],
                    "description": "Whether to create prorations when updating the subscription."
                  }
                },
                "required": [
                  "collection_method"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the subscription object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription"
                      ]
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the application associated with the subscription."
                    },
                    "billing_anchor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The reference point that aligns future billing cycle dates."
                    },
                    "billing_anchor_config": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "day_of_month": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "description": "The day of the month to anchor billing to."
                        }
                      },
                      "required": [
                        "day_of_month"
                      ],
                      "description": "Configuration for the billing anchor."
                    },
                    "cancel_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date at which the subscription will be automatically canceled."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date the subscription was canceled."
                    },
                    "collection_method": {
                      "type": "string",
                      "enum": [
                        "charge_automatically",
                        "send_invoice"
                      ],
                      "description": "The collection method for the subscription."
                    },
                    "coupon": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the coupon applied to the subscription."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency of the subscription.",
                      "example": "gbp"
                    },
                    "current_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the current billing period."
                    },
                    "current_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the current billing period."
                    },
                    "custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40,
                            "description": "The name of the custom field."
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140,
                            "description": "The value of the custom field."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4,
                      "description": "Custom fields attached to the subscription invoices."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        }
                      ],
                      "description": "The customer associated with the subscription."
                    },
                    "days_before_collection": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 7,
                      "description": "The number of days before the due date to attempt collection."
                    },
                    "days_until_due": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The number of days until the invoice is due."
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the default payment method for the subscription."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription."
                    },
                    "end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the subscription."
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "month",
                        "week",
                        "custom"
                      ],
                      "description": "The billing interval for the subscription."
                    },
                    "interval_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The number of intervals between each billing cycle."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription."
                    },
                    "next_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the next billing period."
                    },
                    "next_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the next billing period."
                    },
                    "pause_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "mark_uncollectible",
                            "void"
                          ],
                          "description": "The behavior to apply to invoices while collection is paused."
                        },
                        "resumes_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The date at which collection will resume."
                        }
                      },
                      "required": [
                        "behavior",
                        "resumes_at"
                      ],
                      "description": "The pause collection settings for the subscription."
                    },
                    "payment_settings": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "payment_method_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          },
                          "description": "The payment method types allowed for the subscription."
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ],
                      "description": "The payment settings for the subscription."
                    },
                    "phases": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_date": {
                            "type": "integer",
                            "description": "The start date of the phase."
                          },
                          "items": {
                            "type": "array",
                            "items": {},
                            "description": "The items in the phase."
                          }
                        },
                        "required": [
                          "start_date",
                          "items"
                        ]
                      },
                      "description": "The phases of the subscription."
                    },
                    "start": {
                      "type": "integer",
                      "description": "The start date of the subscription."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "canceled",
                        "complete",
                        "scheduled"
                      ],
                      "description": "The status of the subscription."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "billing_anchor",
                    "billing_anchor_config",
                    "cancel_at",
                    "canceled_at",
                    "collection_method",
                    "coupon",
                    "currency",
                    "current_period_end",
                    "current_period_start",
                    "custom_fields",
                    "customer",
                    "days_before_collection",
                    "days_until_due",
                    "default_payment_method",
                    "description",
                    "end",
                    "interval",
                    "interval_count",
                    "next_period_end",
                    "next_period_start",
                    "pause_collection",
                    "payment_settings",
                    "phases",
                    "start",
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscriptions/{id}/cancel": {
      "post": {
        "operationId": "subscriptions_cancel",
        "summary": "Cancel a subscription",
        "description": "Cancel a subscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "credit_note_data": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "customer_balance",
                          "out_of_band",
                          "refund"
                        ],
                        "description": "The type of credit note to create."
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "description": "The credit note data for the subscription cancellation."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "If the subscription ID does not exist, this call throws an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription"
                      ]
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the application associated with the subscription."
                    },
                    "billing_anchor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The reference point that aligns future billing cycle dates."
                    },
                    "billing_anchor_config": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "day_of_month": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "description": "The day of the month to anchor billing to."
                        }
                      },
                      "required": [
                        "day_of_month"
                      ],
                      "description": "Configuration for the billing anchor."
                    },
                    "cancel_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date at which the subscription will be automatically canceled."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date the subscription was canceled."
                    },
                    "collection_method": {
                      "type": "string",
                      "enum": [
                        "charge_automatically",
                        "send_invoice"
                      ],
                      "description": "The collection method for the subscription."
                    },
                    "coupon": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the coupon applied to the subscription."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency of the subscription.",
                      "example": "gbp"
                    },
                    "current_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the current billing period."
                    },
                    "current_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the current billing period."
                    },
                    "custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40,
                            "description": "The name of the custom field."
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140,
                            "description": "The value of the custom field."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4,
                      "description": "Custom fields attached to the subscription invoices."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        }
                      ],
                      "description": "The customer associated with the subscription."
                    },
                    "days_before_collection": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 7,
                      "description": "The number of days before the due date to attempt collection."
                    },
                    "days_until_due": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The number of days until the invoice is due."
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the default payment method for the subscription."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription."
                    },
                    "end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the subscription."
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "month",
                        "week",
                        "custom"
                      ],
                      "description": "The billing interval for the subscription."
                    },
                    "interval_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The number of intervals between each billing cycle."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription."
                    },
                    "next_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the next billing period."
                    },
                    "next_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the next billing period."
                    },
                    "pause_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "mark_uncollectible",
                            "void"
                          ],
                          "description": "The behavior to apply to invoices while collection is paused."
                        },
                        "resumes_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The date at which collection will resume."
                        }
                      },
                      "required": [
                        "behavior",
                        "resumes_at"
                      ],
                      "description": "The pause collection settings for the subscription."
                    },
                    "payment_settings": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "payment_method_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          },
                          "description": "The payment method types allowed for the subscription."
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ],
                      "description": "The payment settings for the subscription."
                    },
                    "phases": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_date": {
                            "type": "integer",
                            "description": "The start date of the phase."
                          },
                          "items": {
                            "type": "array",
                            "items": {},
                            "description": "The items in the phase."
                          }
                        },
                        "required": [
                          "start_date",
                          "items"
                        ]
                      },
                      "description": "The phases of the subscription."
                    },
                    "start": {
                      "type": "integer",
                      "description": "The start date of the subscription."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "canceled",
                        "complete",
                        "scheduled"
                      ],
                      "description": "The status of the subscription."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "billing_anchor",
                    "billing_anchor_config",
                    "cancel_at",
                    "canceled_at",
                    "collection_method",
                    "coupon",
                    "currency",
                    "current_period_end",
                    "current_period_start",
                    "custom_fields",
                    "customer",
                    "days_before_collection",
                    "days_until_due",
                    "default_payment_method",
                    "description",
                    "end",
                    "interval",
                    "interval_count",
                    "next_period_end",
                    "next_period_start",
                    "pause_collection",
                    "payment_settings",
                    "phases",
                    "start",
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscriptions/{id}/progress": {
      "post": {
        "operationId": "subscriptions_progress",
        "summary": "Progress a subscription",
        "description": "Progress a subscription",
        "tags": [
          "Subscriptions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the subscription object if the progress succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "subscription"
                      ]
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the application associated with the subscription."
                    },
                    "billing_anchor": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The reference point that aligns future billing cycle dates."
                    },
                    "billing_anchor_config": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "day_of_month": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "description": "The day of the month to anchor billing to."
                        }
                      },
                      "required": [
                        "day_of_month"
                      ],
                      "description": "Configuration for the billing anchor."
                    },
                    "cancel_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date at which the subscription will be automatically canceled."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date the subscription was canceled."
                    },
                    "collection_method": {
                      "type": "string",
                      "enum": [
                        "charge_automatically",
                        "send_invoice"
                      ],
                      "description": "The collection method for the subscription."
                    },
                    "coupon": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the coupon applied to the subscription."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency of the subscription.",
                      "example": "gbp"
                    },
                    "current_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the current billing period."
                    },
                    "current_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the current billing period."
                    },
                    "custom_fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 40,
                            "description": "The name of the custom field."
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 140,
                            "description": "The value of the custom field."
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ]
                      },
                      "maxItems": 4,
                      "description": "Custom fields attached to the subscription invoices."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        }
                      ],
                      "description": "The customer associated with the subscription."
                    },
                    "days_before_collection": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "maximum": 7,
                      "description": "The number of days before the due date to attempt collection."
                    },
                    "days_until_due": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0,
                      "description": "The number of days until the invoice is due."
                    },
                    "default_payment_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the default payment method for the subscription."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the subscription."
                    },
                    "end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the subscription."
                    },
                    "interval": {
                      "type": "string",
                      "enum": [
                        "month",
                        "week",
                        "custom"
                      ],
                      "description": "The billing interval for the subscription."
                    },
                    "interval_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The number of intervals between each billing cycle."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs attached to the subscription."
                    },
                    "next_period_end": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end of the next billing period."
                    },
                    "next_period_start": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start of the next billing period."
                    },
                    "pause_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "behavior": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "mark_uncollectible",
                            "void"
                          ],
                          "description": "The behavior to apply to invoices while collection is paused."
                        },
                        "resumes_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The date at which collection will resume."
                        }
                      },
                      "required": [
                        "behavior",
                        "resumes_at"
                      ],
                      "description": "The pause collection settings for the subscription."
                    },
                    "payment_settings": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "payment_method_types": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "autogiro",
                              "bacs_debit",
                              "card",
                              "card_present",
                              "bank_transfer",
                              "direct_transfer",
                              "gbp_credit_transfer",
                              "pay_by_bank",
                              "sepa_debit"
                            ]
                          },
                          "description": "The payment method types allowed for the subscription."
                        }
                      },
                      "required": [
                        "payment_method_types"
                      ],
                      "description": "The payment settings for the subscription."
                    },
                    "phases": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_date": {
                            "type": "integer",
                            "description": "The start date of the phase."
                          },
                          "items": {
                            "type": "array",
                            "items": {},
                            "description": "The items in the phase."
                          }
                        },
                        "required": [
                          "start_date",
                          "items"
                        ]
                      },
                      "description": "The phases of the subscription."
                    },
                    "start": {
                      "type": "integer",
                      "description": "The start date of the subscription."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "canceled",
                        "complete",
                        "scheduled"
                      ],
                      "description": "The status of the subscription."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "billing_anchor",
                    "billing_anchor_config",
                    "cancel_at",
                    "canceled_at",
                    "collection_method",
                    "coupon",
                    "currency",
                    "current_period_end",
                    "current_period_start",
                    "custom_fields",
                    "customer",
                    "days_before_collection",
                    "days_until_due",
                    "default_payment_method",
                    "description",
                    "end",
                    "interval",
                    "interval_count",
                    "next_period_end",
                    "next_period_start",
                    "pause_collection",
                    "payment_settings",
                    "phases",
                    "start",
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/tax_rates": {
      "post": {
        "operationId": "tax_rates_create",
        "summary": "Create a tax rate",
        "description": "Create a tax rate",
        "tags": [
          "Tax Rates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the tax rate, which will be shown to users."
                  },
                  "inclusive": {
                    "type": "boolean",
                    "description": "Whether the tax rate is inclusive or exclusive."
                  },
                  "percentage": {
                    "type": "number",
                    "minimum": 0.01,
                    "maximum": 100,
                    "description": "The percentage of the tax rate out of 100."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether the tax rate is active."
                  },
                  "country": {
                    "type": "string",
                    "description": "The country for the tax rate."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the tax rate."
                  },
                  "jurisdiction": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                  },
                  "state": {
                    "type": "string",
                    "description": "The state for the tax rate."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The metadata for the tax rate."
                  },
                  "tax_type": {
                    "type": "string",
                    "enum": [
                      "gst",
                      "sales_tax",
                      "vat",
                      "custom"
                    ],
                    "description": "The high-level tax type."
                  }
                },
                "required": [
                  "name",
                  "inclusive",
                  "percentage"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the tax rate object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "tax_rate"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the tax rate is active."
                    },
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The country for the tax rate."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the tax rate."
                    },
                    "inclusive": {
                      "type": "boolean",
                      "description": "Whether the tax rate is inclusive or exclusive."
                    },
                    "jurisdiction": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page."
                    },
                    "percentage": {
                      "type": "number",
                      "description": "The percentage of the tax rate out of 100."
                    },
                    "state": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The state for the tax rate."
                    },
                    "tax_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "gst",
                        "sales_tax",
                        "vat",
                        "custom",
                        null
                      ],
                      "description": "The high-level tax type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "country",
                    "description",
                    "inclusive",
                    "jurisdiction",
                    "name",
                    "percentage",
                    "state",
                    "tax_type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "tax_rates_list",
        "summary": "List all tax rates",
        "description": "List all tax rates",
        "tags": [
          "Tax Rates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of tax rates.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "tax_rate"
                            ]
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Whether the tax rate is active."
                          },
                          "country": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The country for the tax rate."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the tax rate."
                          },
                          "inclusive": {
                            "type": "boolean",
                            "description": "Whether the tax rate is inclusive or exclusive."
                          },
                          "jurisdiction": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page."
                          },
                          "percentage": {
                            "type": "number",
                            "description": "The percentage of the tax rate out of 100."
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The state for the tax rate."
                          },
                          "tax_type": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "gst",
                              "sales_tax",
                              "vat",
                              "custom",
                              null
                            ],
                            "description": "The high-level tax type."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "active",
                          "country",
                          "description",
                          "inclusive",
                          "jurisdiction",
                          "name",
                          "percentage",
                          "state",
                          "tax_type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/tax_rates/{id}": {
      "get": {
        "operationId": "tax_rates_retrieve",
        "summary": "Retrieve a tax rate",
        "description": "Retrieve a tax rate",
        "tags": [
          "Tax Rates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a tax rate object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "tax_rate"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the tax rate is active."
                    },
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The country for the tax rate."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the tax rate."
                    },
                    "inclusive": {
                      "type": "boolean",
                      "description": "Whether the tax rate is inclusive or exclusive."
                    },
                    "jurisdiction": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page."
                    },
                    "percentage": {
                      "type": "number",
                      "description": "The percentage of the tax rate out of 100."
                    },
                    "state": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The state for the tax rate."
                    },
                    "tax_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "gst",
                        "sales_tax",
                        "vat",
                        "custom",
                        null
                      ],
                      "description": "The high-level tax type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "country",
                    "description",
                    "inclusive",
                    "jurisdiction",
                    "name",
                    "percentage",
                    "state",
                    "tax_type"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "tax_rates_update",
        "summary": "Update a tax rate",
        "description": "Update a tax rate",
        "tags": [
          "Tax Rates"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Whether the tax rate is active."
                  },
                  "description": {
                    "type": "string",
                    "description": "The description of the tax rate."
                  },
                  "jurisdiction": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "The metadata for the tax rate."
                  },
                  "state": {
                    "type": "string",
                    "description": "The state for the tax rate."
                  },
                  "tax_type": {
                    "type": "string",
                    "enum": [
                      "gst",
                      "sales_tax",
                      "vat",
                      "custom"
                    ],
                    "description": "The high-level tax type."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the tax rate, which will be shown to users."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the tax rate object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "tax_rate"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the tax rate is active."
                    },
                    "country": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The country for the tax rate."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the tax rate."
                    },
                    "inclusive": {
                      "type": "boolean",
                      "description": "Whether the tax rate is inclusive or exclusive."
                    },
                    "jurisdiction": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page."
                    },
                    "percentage": {
                      "type": "number",
                      "description": "The percentage of the tax rate out of 100."
                    },
                    "state": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The state for the tax rate."
                    },
                    "tax_type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "gst",
                        "sales_tax",
                        "vat",
                        "custom",
                        null
                      ],
                      "description": "The high-level tax type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "country",
                    "description",
                    "inclusive",
                    "jurisdiction",
                    "name",
                    "percentage",
                    "state",
                    "tax_type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/buildings": {
      "post": {
        "operationId": "buildings_create",
        "summary": "Create a building",
        "description": "",
        "tags": [
          "Buildings"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "line1": {
                        "type": "string"
                      },
                      "line2": {
                        "type": "string"
                      },
                      "city": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "postal_code": {
                        "type": "string"
                      },
                      "state": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "country"
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek"
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                    "example": "gbp"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "marketing": {
                    "type": "object",
                    "properties": {
                      "featured_photo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "photos": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "single_unit": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "block_management",
                      "commercial",
                      "residential",
                      "student"
                    ]
                  },
                  "unit_fees": {
                    "type": "object",
                    "properties": {
                      "management_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "management_fee_amount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "management_fee_discount": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "end": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "percent_off": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "end",
                          "percent_off"
                        ]
                      },
                      "management_fee_type": {
                        "type": "string",
                        "enum": [
                          "percentage",
                          "fixed"
                        ],
                        "default": "percentage"
                      },
                      "renewal_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tax": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tax_behavior": {
                        "type": "string",
                        "enum": [
                          "exclusive",
                          "inclusive"
                        ],
                        "default": "exclusive"
                      },
                      "tenant_find_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "management_fee",
                      "management_fee_amount",
                      "management_fee_discount",
                      "renewal_fee",
                      "tax",
                      "tenant_find_fee"
                    ]
                  }
                },
                "required": [
                  "address",
                  "currency",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the task object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "building"
                      ]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "currency": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marketing": {
                      "type": "object",
                      "properties": {
                        "featured_photo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": "string"
                    },
                    "removable": {
                      "type": "boolean"
                    },
                    "single_unit": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "block_management",
                        "commercial",
                        "residential",
                        "student",
                        null
                      ]
                    },
                    "unit_fees": {
                      "type": "object",
                      "properties": {
                        "management_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_discount": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "end": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent_off": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "end",
                            "percent_off"
                          ]
                        },
                        "management_fee_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "percentage",
                            "fixed",
                            null
                          ]
                        },
                        "renewal_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax_behavior": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "exclusive",
                            "inclusive",
                            null
                          ]
                        },
                        "tenant_find_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "updated_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "management_fee",
                        "management_fee_amount",
                        "management_fee_discount",
                        "management_fee_type",
                        "renewal_fee",
                        "tax",
                        "tax_behavior",
                        "tenant_find_fee",
                        "updated_at"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "address",
                    "currency",
                    "description",
                    "marketing",
                    "name",
                    "removable",
                    "single_unit",
                    "type",
                    "unit_fees"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "buildings_list",
        "summary": "List all buildings",
        "description": "",
        "tags": [
          "Buildings"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of buildings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "building"
                            ]
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "address": {
                            "type": "object",
                            "properties": {
                              "line1": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "line2": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "city": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "postal_code": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          },
                          "currency": {
                            "type": "string"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "marketing": {
                            "type": "object",
                            "properties": {
                              "featured_photo": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "photos": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "name": {
                            "type": "string"
                          },
                          "removable": {
                            "type": "boolean"
                          },
                          "single_unit": {
                            "type": "boolean"
                          },
                          "type": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "block_management",
                              "commercial",
                              "residential",
                              "student",
                              null
                            ]
                          },
                          "unit_fees": {
                            "type": "object",
                            "properties": {
                              "management_fee": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "management_fee_amount": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "management_fee_discount": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "end": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "percent_off": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "end",
                                  "percent_off"
                                ]
                              },
                              "management_fee_type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "percentage",
                                  "fixed",
                                  null
                                ]
                              },
                              "renewal_fee": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "tax": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "tax_behavior": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "exclusive",
                                  "inclusive",
                                  null
                                ]
                              },
                              "tenant_find_fee": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "updated_at": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Must be a Unix timestamp in UTC time."
                              }
                            },
                            "required": [
                              "management_fee",
                              "management_fee_amount",
                              "management_fee_discount",
                              "management_fee_type",
                              "renewal_fee",
                              "tax",
                              "tax_behavior",
                              "tenant_find_fee",
                              "updated_at"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "active",
                          "address",
                          "currency",
                          "description",
                          "marketing",
                          "name",
                          "removable",
                          "single_unit",
                          "type",
                          "unit_fees"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/buildings/{id}": {
      "get": {
        "operationId": "buildings_retrieve",
        "summary": "Retrieve a building",
        "description": "",
        "tags": [
          "Buildings"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a building object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "building"
                      ]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "currency": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marketing": {
                      "type": "object",
                      "properties": {
                        "featured_photo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": "string"
                    },
                    "removable": {
                      "type": "boolean"
                    },
                    "single_unit": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "block_management",
                        "commercial",
                        "residential",
                        "student",
                        null
                      ]
                    },
                    "unit_fees": {
                      "type": "object",
                      "properties": {
                        "management_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_discount": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "end": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent_off": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "end",
                            "percent_off"
                          ]
                        },
                        "management_fee_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "percentage",
                            "fixed",
                            null
                          ]
                        },
                        "renewal_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax_behavior": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "exclusive",
                            "inclusive",
                            null
                          ]
                        },
                        "tenant_find_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "updated_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "management_fee",
                        "management_fee_amount",
                        "management_fee_discount",
                        "management_fee_type",
                        "renewal_fee",
                        "tax",
                        "tax_behavior",
                        "tenant_find_fee",
                        "updated_at"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "address",
                    "currency",
                    "description",
                    "marketing",
                    "name",
                    "removable",
                    "single_unit",
                    "type",
                    "unit_fees"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "buildings_update",
        "summary": "Update a building",
        "description": "",
        "tags": [
          "Buildings"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "line1": {
                        "type": "string"
                      },
                      "line2": {
                        "type": "string"
                      },
                      "city": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "postal_code": {
                        "type": "string"
                      },
                      "state": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "country"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "marketing": {
                    "type": "object",
                    "properties": {
                      "featured_photo": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "photos": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "block_management",
                      "commercial",
                      "residential",
                      "student"
                    ]
                  },
                  "unit_fees": {
                    "type": "object",
                    "properties": {
                      "management_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "management_fee_amount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "management_fee_discount": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "end": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "percent_off": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "end",
                          "percent_off"
                        ]
                      },
                      "management_fee_type": {
                        "type": "string",
                        "enum": [
                          "percentage",
                          "fixed"
                        ],
                        "default": "percentage"
                      },
                      "renewal_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tax": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tax_behavior": {
                        "type": "string",
                        "enum": [
                          "exclusive",
                          "inclusive"
                        ],
                        "default": "exclusive"
                      },
                      "tenant_find_fee": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "management_fee",
                      "management_fee_amount",
                      "management_fee_discount",
                      "renewal_fee",
                      "tax",
                      "tenant_find_fee"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the building object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "building"
                      ]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "currency": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marketing": {
                      "type": "object",
                      "properties": {
                        "featured_photo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": "string"
                    },
                    "removable": {
                      "type": "boolean"
                    },
                    "single_unit": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "block_management",
                        "commercial",
                        "residential",
                        "student",
                        null
                      ]
                    },
                    "unit_fees": {
                      "type": "object",
                      "properties": {
                        "management_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_discount": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "end": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent_off": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "end",
                            "percent_off"
                          ]
                        },
                        "management_fee_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "percentage",
                            "fixed",
                            null
                          ]
                        },
                        "renewal_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax_behavior": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "exclusive",
                            "inclusive",
                            null
                          ]
                        },
                        "tenant_find_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "updated_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "management_fee",
                        "management_fee_amount",
                        "management_fee_discount",
                        "management_fee_type",
                        "renewal_fee",
                        "tax",
                        "tax_behavior",
                        "tenant_find_fee",
                        "updated_at"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "address",
                    "currency",
                    "description",
                    "marketing",
                    "name",
                    "removable",
                    "single_unit",
                    "type",
                    "unit_fees"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "buildings_delete",
        "summary": "Delete a building",
        "description": "",
        "tags": [
          "Buildings"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an object with a deleted parameter on success. If the building ID does not exist, this call throws an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "building"
                      ]
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "currency": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "marketing": {
                      "type": "object",
                      "properties": {
                        "featured_photo": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": "string"
                    },
                    "removable": {
                      "type": "boolean"
                    },
                    "single_unit": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "block_management",
                        "commercial",
                        "residential",
                        "student",
                        null
                      ]
                    },
                    "unit_fees": {
                      "type": "object",
                      "properties": {
                        "management_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "management_fee_discount": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "end": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "percent_off": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "end",
                            "percent_off"
                          ]
                        },
                        "management_fee_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "percentage",
                            "fixed",
                            null
                          ]
                        },
                        "renewal_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tax_behavior": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "exclusive",
                            "inclusive",
                            null
                          ]
                        },
                        "tenant_find_fee": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "updated_at": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "management_fee",
                        "management_fee_amount",
                        "management_fee_discount",
                        "management_fee_type",
                        "renewal_fee",
                        "tax",
                        "tax_behavior",
                        "tenant_find_fee",
                        "updated_at"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "address",
                    "currency",
                    "description",
                    "marketing",
                    "name",
                    "removable",
                    "single_unit",
                    "type",
                    "unit_fees"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers": {
      "post": {
        "operationId": "customers_create",
        "summary": "Create a customer",
        "description": "",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "line1": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "line2": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "postal_code": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "state": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "description": {
                    "type": "string"
                  },
                  "invoice_prefix": {
                    "type": "string"
                  },
                  "invoicing": {
                    "type": "object",
                    "properties": {
                      "arrears_emails": {
                        "type": "boolean"
                      },
                      "email_cc": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "email_to": {
                        "type": "string"
                      }
                    }
                  },
                  "legal": {
                    "type": "object",
                    "properties": {
                      "dob": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 31
                          },
                          "month": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 12
                          },
                          "year": {
                            "type": "number",
                            "minimum": 1900,
                            "maximum": 9999
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ]
                      },
                      "first_name": {
                        "type": "string"
                      },
                      "last_name": {
                        "type": "string"
                      }
                    }
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "next_invoice_sequence": {
                    "type": "integer"
                  },
                  "phone": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the customer object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ]
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "delinquent": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "invoice_prefix": {
                      "type": "string"
                    },
                    "invoicing": {
                      "type": "object",
                      "properties": {
                        "arrears_emails": {
                          "type": "boolean"
                        },
                        "email_cc": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "email_to": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        }
                      },
                      "required": [
                        "arrears_emails",
                        "email_cc"
                      ]
                    },
                    "legal": {
                      "type": "object",
                      "properties": {
                        "dob": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "radar": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "risk_level": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "reason",
                        "risk_level"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "address",
                    "default_payment_method",
                    "delinquent",
                    "description",
                    "email",
                    "invoice_prefix",
                    "invoicing",
                    "legal",
                    "name",
                    "phone",
                    "radar"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "customers_list",
        "summary": "List all customers",
        "description": "",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of customers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "customer"
                            ]
                          },
                          "address": {
                            "type": "object",
                            "properties": {
                              "line1": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "line2": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "city": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "postal_code": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          },
                          "default_payment_method": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "delinquent": {
                            "type": "boolean"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "email": {
                            "type": "string",
                            "format": "email"
                          },
                          "invoice_prefix": {
                            "type": "string"
                          },
                          "invoicing": {
                            "type": "object",
                            "properties": {
                              "arrears_emails": {
                                "type": "boolean"
                              },
                              "email_cc": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "email"
                                }
                              },
                              "email_to": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "email"
                              }
                            },
                            "required": [
                              "arrears_emails",
                              "email_cc"
                            ]
                          },
                          "legal": {
                            "type": "object",
                            "properties": {
                              "dob": {
                                "type": "object",
                                "properties": {
                                  "day": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1,
                                    "maximum": 31
                                  },
                                  "month": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1,
                                    "maximum": 12
                                  },
                                  "year": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1900,
                                    "maximum": 9999
                                  }
                                },
                                "required": [
                                  "day",
                                  "month",
                                  "year"
                                ]
                              },
                              "first_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "last_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "dob",
                              "first_name",
                              "last_name"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phone": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "radar": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "risk_level": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "reason",
                              "risk_level"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "address",
                          "default_payment_method",
                          "delinquent",
                          "description",
                          "email",
                          "invoice_prefix",
                          "invoicing",
                          "legal",
                          "name",
                          "phone",
                          "radar"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/customers/{id}": {
      "get": {
        "operationId": "customers_retrieve",
        "summary": "Retrieve a customer",
        "description": "",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a customer object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ]
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "delinquent": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "invoice_prefix": {
                      "type": "string"
                    },
                    "invoicing": {
                      "type": "object",
                      "properties": {
                        "arrears_emails": {
                          "type": "boolean"
                        },
                        "email_cc": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "email_to": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        }
                      },
                      "required": [
                        "arrears_emails",
                        "email_cc"
                      ]
                    },
                    "legal": {
                      "type": "object",
                      "properties": {
                        "dob": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "radar": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "risk_level": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "reason",
                        "risk_level"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "address",
                    "default_payment_method",
                    "delinquent",
                    "description",
                    "email",
                    "invoice_prefix",
                    "invoicing",
                    "legal",
                    "name",
                    "phone",
                    "radar"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "customers_update",
        "summary": "Update a customer",
        "description": "",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "line1": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "line2": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "postal_code": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "state": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "description": {
                    "type": "string"
                  },
                  "invoice_prefix": {
                    "type": "string"
                  },
                  "invoicing": {
                    "type": "object",
                    "properties": {
                      "arrears_emails": {
                        "type": "boolean"
                      },
                      "email_cc": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "email_to": {
                        "type": "string"
                      }
                    }
                  },
                  "legal": {
                    "type": "object",
                    "properties": {
                      "dob": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 31
                          },
                          "month": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 12
                          },
                          "year": {
                            "type": "number",
                            "minimum": 1900,
                            "maximum": 9999
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ]
                      },
                      "first_name": {
                        "type": "string"
                      },
                      "last_name": {
                        "type": "string"
                      }
                    }
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "next_invoice_sequence": {
                    "type": "integer"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "archived": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the customer object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ]
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "delinquent": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "invoice_prefix": {
                      "type": "string"
                    },
                    "invoicing": {
                      "type": "object",
                      "properties": {
                        "arrears_emails": {
                          "type": "boolean"
                        },
                        "email_cc": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "email_to": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        }
                      },
                      "required": [
                        "arrears_emails",
                        "email_cc"
                      ]
                    },
                    "legal": {
                      "type": "object",
                      "properties": {
                        "dob": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "radar": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "risk_level": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "reason",
                        "risk_level"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "address",
                    "default_payment_method",
                    "delinquent",
                    "description",
                    "email",
                    "invoice_prefix",
                    "invoicing",
                    "legal",
                    "name",
                    "phone",
                    "radar"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "customers_delete",
        "summary": "Delete a customer",
        "description": "",
        "tags": [
          "Customers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an object with a deleted parameter on success. If the customer ID does not exist, this call throws an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ]
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "line1": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line2": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postal_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "delinquent": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "invoice_prefix": {
                      "type": "string"
                    },
                    "invoicing": {
                      "type": "object",
                      "properties": {
                        "arrears_emails": {
                          "type": "boolean"
                        },
                        "email_cc": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "email"
                          }
                        },
                        "email_to": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        }
                      },
                      "required": [
                        "arrears_emails",
                        "email_cc"
                      ]
                    },
                    "legal": {
                      "type": "object",
                      "properties": {
                        "dob": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "radar": {
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "risk_level": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "reason",
                        "risk_level"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "address",
                    "default_payment_method",
                    "delinquent",
                    "description",
                    "email",
                    "invoice_prefix",
                    "invoicing",
                    "legal",
                    "name",
                    "phone",
                    "radar"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks": {
      "post": {
        "operationId": "tasks_create",
        "summary": "Create a task",
        "description": "",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  },
                  "due_date": {
                    "type": "number",
                    "minimum": 1
                  },
                  "priority": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3,
                    "default": 0
                  },
                  "important": {
                    "type": "boolean",
                    "default": false
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "to_do",
                      "in_progress",
                      "done"
                    ],
                    "default": "to_do"
                  },
                  "checklist_items": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        },
                        "completed": {
                          "type": "boolean",
                          "default": false
                        }
                      },
                      "required": [
                        "text"
                      ]
                    },
                    "default": {}
                  },
                  "assignee": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "title",
                  "description",
                  "due_date",
                  "assignee"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the task object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "task"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "due_date": {
                      "type": "number"
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 3
                    },
                    "important": {
                      "type": "boolean",
                      "default": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "to_do",
                        "in_progress",
                        "done"
                      ]
                    },
                    "checklist_items": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string"
                          },
                          "completed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "text",
                          "completed"
                        ]
                      },
                      "default": {}
                    },
                    "assignee": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "email": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "email",
                            "name"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The assignee of this task."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "title",
                    "description",
                    "due_date",
                    "priority",
                    "status",
                    "assignee"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "tasks_list",
        "summary": "List all tasks",
        "description": "",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of tasks.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "task"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "due_date": {
                            "type": "number"
                          },
                          "priority": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 3
                          },
                          "important": {
                            "type": "boolean",
                            "default": false
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "to_do",
                              "in_progress",
                              "done"
                            ]
                          },
                          "checklist_items": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string"
                                },
                                "completed": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "text",
                                "completed"
                              ]
                            },
                            "default": {}
                          },
                          "assignee": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "user"
                                    ]
                                  },
                                  "email": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "email",
                                  "name"
                                ]
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "The assignee of this task."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "title",
                          "description",
                          "due_date",
                          "priority",
                          "status",
                          "assignee"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks/{id}": {
      "get": {
        "operationId": "tasks_retrieve",
        "summary": "Retrieve a task",
        "description": "",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a task object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "task"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "due_date": {
                      "type": "number"
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 3
                    },
                    "important": {
                      "type": "boolean",
                      "default": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "to_do",
                        "in_progress",
                        "done"
                      ]
                    },
                    "checklist_items": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string"
                          },
                          "completed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "text",
                          "completed"
                        ]
                      },
                      "default": {}
                    },
                    "assignee": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "email": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "email",
                            "name"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The assignee of this task."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "title",
                    "description",
                    "due_date",
                    "priority",
                    "status",
                    "assignee"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "tasks_update",
        "summary": "Update a task",
        "description": "",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1
                  },
                  "due_date": {
                    "type": "number",
                    "minimum": 1
                  },
                  "priority": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 3,
                    "default": 0
                  },
                  "important": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "to_do",
                      "in_progress",
                      "done"
                    ]
                  },
                  "checklist_items": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "completed": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "text"
                      ]
                    }
                  },
                  "assignee": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the task object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "task"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "due_date": {
                      "type": "number"
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 3
                    },
                    "important": {
                      "type": "boolean",
                      "default": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "to_do",
                        "in_progress",
                        "done"
                      ]
                    },
                    "checklist_items": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string"
                          },
                          "completed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "text",
                          "completed"
                        ]
                      },
                      "default": {}
                    },
                    "assignee": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "email": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "email",
                            "name"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The assignee of this task."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "title",
                    "description",
                    "due_date",
                    "priority",
                    "status",
                    "assignee"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "tasks_delete",
        "summary": "Delete a task",
        "description": "",
        "tags": [
          "Tasks"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an object with a deleted parameter on success. If the task ID does not exist, this call throws an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "task"
                      ]
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "due_date": {
                      "type": "number"
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 3
                    },
                    "important": {
                      "type": "boolean",
                      "default": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "to_do",
                        "in_progress",
                        "done"
                      ]
                    },
                    "checklist_items": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string"
                          },
                          "completed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "text",
                          "completed"
                        ]
                      },
                      "default": {}
                    },
                    "assignee": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "user"
                              ]
                            },
                            "email": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "email",
                            "name"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The assignee of this task."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "title",
                    "description",
                    "due_date",
                    "priority",
                    "status",
                    "assignee"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/verification_sessions": {
      "post": {
        "operationId": "verification_sessions_create",
        "summary": "Create a verification session",
        "description": "",
        "tags": [
          "Verification Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "client_reference_id": {
                    "type": "string"
                  },
                  "options": {
                    "type": "object",
                    "properties": {
                      "identity": {
                        "type": "object",
                        "properties": {
                          "allowed_types": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "driving_licence",
                                "id_card",
                                "passport"
                              ]
                            }
                          }
                        },
                        "required": [
                          "allowed_types"
                        ]
                      },
                      "income": {
                        "type": "object",
                        "properties": {
                          "affordability_check": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "interval": {
                                "type": "string",
                                "enum": [
                                  "month",
                                  "week"
                                ]
                              },
                              "inverval_count": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "amount",
                              "interval",
                              "inverval_count"
                            ]
                          },
                          "require_income_reference": {
                            "type": "boolean"
                          }
                        }
                      },
                      "monitor": {
                        "type": "object",
                        "properties": {
                          "continuous_screening": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  },
                  "provided_details": {
                    "type": "object",
                    "properties": {
                      "dob": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 1,
                            "maximum": 31
                          },
                          "month": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 1,
                            "maximum": 12
                          },
                          "year": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "minimum": 1900,
                            "maximum": 9999
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ]
                      },
                      "email": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "email"
                      },
                      "first_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "phone": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "related_customer": {
                    "type": "string"
                  },
                  "related_owner_person": {
                    "type": "string"
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "send_email": {
                    "type": "boolean",
                    "default": false
                  },
                  "types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "credit_check",
                        "income",
                        "identity",
                        "right_to_rent"
                      ]
                    }
                  }
                },
                "required": [
                  "types"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the verification session object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "verification_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "credit_check": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity",
                                "collect_identity",
                                "collect_previous_addresses"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "identity": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "last_error": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "reason"
                          ]
                        },
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "client_secret": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "client_secret"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk",
                                "pending_identity",
                                "collect_identity",
                                "collect_previous_addresses"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "last_error",
                        "next_action",
                        "status"
                      ]
                    },
                    "income": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_income",
                                "collect_source",
                                "request_token"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "manually_reviewed": {
                      "type": "boolean",
                      "default": false
                    },
                    "monitor": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "processing",
                            "verified",
                            "unverified",
                            "requires_review",
                            null
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "identity": {
                          "type": "object",
                          "properties": {
                            "allowed_types": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "driving_licence",
                                  "id_card",
                                  "passport"
                                ]
                              }
                            }
                          },
                          "required": [
                            "allowed_types"
                          ]
                        },
                        "income": {
                          "type": "object",
                          "properties": {
                            "affordability_check": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number"
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week"
                                  ]
                                },
                                "inverval_count": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "amount",
                                "interval",
                                "inverval_count"
                              ]
                            },
                            "require_income_reference": {
                              "type": "boolean"
                            }
                          }
                        },
                        "monitor": {
                          "type": "object",
                          "properties": {
                            "continuous_screening": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    },
                    "provided_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "dob": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "email",
                        "last_name",
                        "phone"
                      ]
                    },
                    "requirements": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "completed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "credit_check",
                              "identity",
                              "income",
                              "right_to_rent"
                            ]
                          }
                        },
                        "currently_due": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "credit_check",
                              "identity",
                              "income",
                              "right_to_rent",
                              "email",
                              "phone",
                              "tos"
                            ]
                          }
                        }
                      },
                      "required": [
                        "completed",
                        "currently_due"
                      ]
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "right_to_rent": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "dob_required": {
                              "type": "boolean"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity",
                                "collect_source",
                                "electronic_travel_authorisation",
                                "share_code"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "requires_input",
                            "processing",
                            "verified",
                            "unverified",
                            "requires_review",
                            null
                          ]
                        },
                        "type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "gb_resident",
                            "ie_resident",
                            "share_code",
                            "electronic_travel_authorisation",
                            null
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status",
                        "type"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "complete",
                        "canceled"
                      ]
                    },
                    "types": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "identity",
                          "right_to_rent",
                          "income",
                          "credit_check",
                          "monitor"
                        ]
                      }
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "verified_outputs": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "affordability": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "cost_to_income_ratio": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "cost_to_income_ratio"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "affordability",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "verification_report": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "verification_report"
                              ]
                            },
                            "identity": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "expiration_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "issuing_country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "expiration_date",
                                "first_name",
                                "issuing_country",
                                "last_name",
                                "status",
                                "type"
                              ]
                            },
                            "income": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "affordability": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "cost_to_income_ratio": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "cost_to_income_ratio"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "permanent_employment",
                                    "self_employed",
                                    "savings",
                                    "student",
                                    "benefits",
                                    "pension",
                                    null
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "bank_account": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "bank_name": {
                                                "type": "string"
                                              },
                                              "income_sources": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "category": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "description": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "total": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "category",
                                                    "description",
                                                    "total"
                                                  ]
                                                }
                                              }
                                            },
                                            "required": [
                                              "bank_name",
                                              "income_sources"
                                            ]
                                          }
                                        },
                                        "sources": {
                                          "type": "number"
                                        },
                                        "total_monthly": {
                                          "type": "number"
                                        },
                                        "total_yearly": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "items",
                                        "sources",
                                        "total_monthly",
                                        "total_yearly"
                                      ]
                                    },
                                    "document": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "employer_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "employee_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "pay_stubs": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "gross_earnings": {
                                                      "type": "number"
                                                    },
                                                    "net_pay": {
                                                      "type": "number"
                                                    },
                                                    "pay_date": {
                                                      "type": [
                                                        "integer",
                                                        "null"
                                                      ],
                                                      "description": "Must be a Unix timestamp in UTC time."
                                                    },
                                                    "pay_frequency": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "gross_earnings",
                                                    "net_pay",
                                                    "pay_date",
                                                    "pay_frequency"
                                                  ]
                                                }
                                              }
                                            },
                                            "required": [
                                              "employer_name",
                                              "employee_name",
                                              "pay_stubs"
                                            ]
                                          }
                                        },
                                        "total_monthly": {
                                          "type": "number"
                                        },
                                        "total_yearly": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "items",
                                        "total_monthly",
                                        "total_yearly"
                                      ]
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "bank_account",
                                        "document",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "bank_account",
                                    "document",
                                    "type"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "status",
                                "type",
                                "verification"
                              ]
                            },
                            "right_to_rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "dob_verification": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "verified",
                                    "self_declared",
                                    null
                                  ]
                                },
                                "share_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "gb_resident",
                                    "ie_resident",
                                    "share_code",
                                    "electronic_travel_authorisation"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "dob_verification",
                                "share_code",
                                "status",
                                "type"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified",
                                "verified"
                              ]
                            },
                            "types": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "identity",
                                  "right_to_rent",
                                  "income",
                                  "credit_check"
                                ]
                              }
                            },
                            "verification_session": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "identity",
                            "income",
                            "right_to_rent",
                            "status",
                            "types",
                            "verification_session"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "credit_check",
                    "identity",
                    "income",
                    "monitor",
                    "options",
                    "provided_details",
                    "requirements",
                    "return_url",
                    "right_to_rent",
                    "status",
                    "types",
                    "url",
                    "verified_outputs",
                    "verification_report"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "verification_sessions_list",
        "summary": "List all verification sessions",
        "description": "",
        "tags": [
          "Verification Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of verification sessions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "verification_session"
                            ]
                          },
                          "completed_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "credit_check": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "next_action": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "pending_identity",
                                      "collect_identity",
                                      "collect_previous_addresses"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "next_action",
                              "status"
                            ]
                          },
                          "identity": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "last_error": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "code",
                                  "reason"
                                ]
                              },
                              "next_action": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "use_yorlet_sdk": {
                                    "type": "object",
                                    "properties": {
                                      "client_secret": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "client_secret"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "use_yorlet_sdk",
                                      "pending_identity",
                                      "collect_identity",
                                      "collect_previous_addresses"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "last_error",
                              "next_action",
                              "status"
                            ]
                          },
                          "income": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "next_action": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "pending_income",
                                      "collect_source",
                                      "request_token"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "next_action",
                              "status"
                            ]
                          },
                          "manually_reviewed": {
                            "type": "boolean",
                            "default": false
                          },
                          "monitor": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "next_action": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "pending_identity"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "processing",
                                  "verified",
                                  "unverified",
                                  "requires_review",
                                  null
                                ]
                              }
                            },
                            "required": [
                              "next_action",
                              "status"
                            ]
                          },
                          "options": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "identity": {
                                "type": "object",
                                "properties": {
                                  "allowed_types": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "driving_licence",
                                        "id_card",
                                        "passport"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "allowed_types"
                                ]
                              },
                              "income": {
                                "type": "object",
                                "properties": {
                                  "affordability_check": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "number"
                                      },
                                      "interval": {
                                        "type": "string",
                                        "enum": [
                                          "month",
                                          "week"
                                        ]
                                      },
                                      "inverval_count": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "interval",
                                      "inverval_count"
                                    ]
                                  },
                                  "require_income_reference": {
                                    "type": "boolean"
                                  }
                                }
                              },
                              "monitor": {
                                "type": "object",
                                "properties": {
                                  "continuous_screening": {
                                    "type": "boolean"
                                  }
                                }
                              }
                            }
                          },
                          "provided_details": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "dob": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "day": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1,
                                    "maximum": 31
                                  },
                                  "month": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1,
                                    "maximum": 12
                                  },
                                  "year": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "minimum": 1900,
                                    "maximum": 9999
                                  }
                                },
                                "required": [
                                  "day",
                                  "month",
                                  "year"
                                ]
                              },
                              "first_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "email": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "email"
                              },
                              "last_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "phone": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "dob",
                              "first_name",
                              "email",
                              "last_name",
                              "phone"
                            ]
                          },
                          "requirements": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "completed": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "credit_check",
                                    "identity",
                                    "income",
                                    "right_to_rent"
                                  ]
                                }
                              },
                              "currently_due": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "credit_check",
                                    "identity",
                                    "income",
                                    "right_to_rent",
                                    "email",
                                    "phone",
                                    "tos"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "completed",
                              "currently_due"
                            ]
                          },
                          "return_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "right_to_rent": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "next_action": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "dob_required": {
                                    "type": "boolean"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "pending_identity",
                                      "collect_source",
                                      "electronic_travel_authorisation",
                                      "share_code"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "requires_input",
                                  "processing",
                                  "verified",
                                  "unverified",
                                  "requires_review",
                                  null
                                ]
                              },
                              "type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "gb_resident",
                                  "ie_resident",
                                  "share_code",
                                  "electronic_travel_authorisation",
                                  null
                                ]
                              }
                            },
                            "required": [
                              "next_action",
                              "status",
                              "type"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "complete",
                              "canceled"
                            ]
                          },
                          "types": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "identity",
                                "right_to_rent",
                                "income",
                                "credit_check",
                                "monitor"
                              ]
                            }
                          },
                          "url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "verified_outputs": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "affordability": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "cost_to_income_ratio": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "cost_to_income_ratio"
                                ]
                              },
                              "first_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "last_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "affordability",
                              "first_name",
                              "last_name"
                            ]
                          },
                          "verification_report": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "verification_report"
                                    ]
                                  },
                                  "identity": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "dob": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "expiration_date": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "Must be a Unix timestamp in UTC time."
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "issuing_country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "unverified",
                                          "verified",
                                          "failed"
                                        ]
                                      },
                                      "type": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "expiration_date",
                                      "first_name",
                                      "issuing_country",
                                      "last_name",
                                      "status",
                                      "type"
                                    ]
                                  },
                                  "income": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "affordability": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "cost_to_income_ratio": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "cost_to_income_ratio"
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "unverified",
                                          "verified",
                                          "failed"
                                        ]
                                      },
                                      "type": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "permanent_employment",
                                          "self_employed",
                                          "savings",
                                          "student",
                                          "benefits",
                                          "pension",
                                          null
                                        ]
                                      },
                                      "verification": {
                                        "type": "object",
                                        "properties": {
                                          "bank_account": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "properties": {
                                              "items": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "bank_name": {
                                                      "type": "string"
                                                    },
                                                    "income_sources": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "category": {
                                                            "type": [
                                                              "string",
                                                              "null"
                                                            ]
                                                          },
                                                          "description": {
                                                            "type": [
                                                              "string",
                                                              "null"
                                                            ]
                                                          },
                                                          "total": {
                                                            "type": "number"
                                                          }
                                                        },
                                                        "required": [
                                                          "category",
                                                          "description",
                                                          "total"
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "bank_name",
                                                    "income_sources"
                                                  ]
                                                }
                                              },
                                              "sources": {
                                                "type": "number"
                                              },
                                              "total_monthly": {
                                                "type": "number"
                                              },
                                              "total_yearly": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "items",
                                              "sources",
                                              "total_monthly",
                                              "total_yearly"
                                            ]
                                          },
                                          "document": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "properties": {
                                              "items": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "employer_name": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "employee_name": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "pay_stubs": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "properties": {
                                                          "gross_earnings": {
                                                            "type": "number"
                                                          },
                                                          "net_pay": {
                                                            "type": "number"
                                                          },
                                                          "pay_date": {
                                                            "type": [
                                                              "integer",
                                                              "null"
                                                            ],
                                                            "description": "Must be a Unix timestamp in UTC time."
                                                          },
                                                          "pay_frequency": {
                                                            "type": [
                                                              "string",
                                                              "null"
                                                            ]
                                                          }
                                                        },
                                                        "required": [
                                                          "gross_earnings",
                                                          "net_pay",
                                                          "pay_date",
                                                          "pay_frequency"
                                                        ]
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "employer_name",
                                                    "employee_name",
                                                    "pay_stubs"
                                                  ]
                                                }
                                              },
                                              "total_monthly": {
                                                "type": "number"
                                              },
                                              "total_yearly": {
                                                "type": "number"
                                              }
                                            },
                                            "required": [
                                              "items",
                                              "total_monthly",
                                              "total_yearly"
                                            ]
                                          },
                                          "type": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "enum": [
                                              "bank_account",
                                              "document",
                                              null
                                            ]
                                          }
                                        },
                                        "required": [
                                          "bank_account",
                                          "document",
                                          "type"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "affordability",
                                      "status",
                                      "type",
                                      "verification"
                                    ]
                                  },
                                  "right_to_rent": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "dob": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "dob_verification": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "verified",
                                          "self_declared",
                                          null
                                        ]
                                      },
                                      "share_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "unverified",
                                          "verified",
                                          "failed"
                                        ]
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "gb_resident",
                                          "ie_resident",
                                          "share_code",
                                          "electronic_travel_authorisation"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "dob_verification",
                                      "share_code",
                                      "status",
                                      "type"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "unverified",
                                      "verified"
                                    ]
                                  },
                                  "types": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "identity",
                                        "right_to_rent",
                                        "income",
                                        "credit_check"
                                      ]
                                    }
                                  },
                                  "verification_session": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "identity",
                                  "income",
                                  "right_to_rent",
                                  "status",
                                  "types",
                                  "verification_session"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "completed_at",
                          "credit_check",
                          "identity",
                          "income",
                          "monitor",
                          "options",
                          "provided_details",
                          "requirements",
                          "return_url",
                          "right_to_rent",
                          "status",
                          "types",
                          "url",
                          "verified_outputs",
                          "verification_report"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/verification_sessions/{id}": {
      "get": {
        "operationId": "verification_sessions_retrieve",
        "summary": "Retrieve a verification session",
        "description": "",
        "tags": [
          "Verification Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a verification session object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "verification_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "credit_check": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity",
                                "collect_identity",
                                "collect_previous_addresses"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "identity": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "last_error": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "reason"
                          ]
                        },
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "client_secret": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "client_secret"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk",
                                "pending_identity",
                                "collect_identity",
                                "collect_previous_addresses"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "last_error",
                        "next_action",
                        "status"
                      ]
                    },
                    "income": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_income",
                                "collect_source",
                                "request_token"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "manually_reviewed": {
                      "type": "boolean",
                      "default": false
                    },
                    "monitor": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "processing",
                            "verified",
                            "unverified",
                            "requires_review",
                            null
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status"
                      ]
                    },
                    "options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "identity": {
                          "type": "object",
                          "properties": {
                            "allowed_types": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "driving_licence",
                                  "id_card",
                                  "passport"
                                ]
                              }
                            }
                          },
                          "required": [
                            "allowed_types"
                          ]
                        },
                        "income": {
                          "type": "object",
                          "properties": {
                            "affordability_check": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number"
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week"
                                  ]
                                },
                                "inverval_count": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "amount",
                                "interval",
                                "inverval_count"
                              ]
                            },
                            "require_income_reference": {
                              "type": "boolean"
                            }
                          }
                        },
                        "monitor": {
                          "type": "object",
                          "properties": {
                            "continuous_screening": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    },
                    "provided_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "dob": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 31
                            },
                            "month": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1,
                              "maximum": 12
                            },
                            "year": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "minimum": 1900,
                              "maximum": 9999
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "email"
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "dob",
                        "first_name",
                        "email",
                        "last_name",
                        "phone"
                      ]
                    },
                    "requirements": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "completed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "credit_check",
                              "identity",
                              "income",
                              "right_to_rent"
                            ]
                          }
                        },
                        "currently_due": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "credit_check",
                              "identity",
                              "income",
                              "right_to_rent",
                              "email",
                              "phone",
                              "tos"
                            ]
                          }
                        }
                      },
                      "required": [
                        "completed",
                        "currently_due"
                      ]
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "right_to_rent": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "next_action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "dob_required": {
                              "type": "boolean"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pending_identity",
                                "collect_source",
                                "electronic_travel_authorisation",
                                "share_code"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "requires_input",
                            "processing",
                            "verified",
                            "unverified",
                            "requires_review",
                            null
                          ]
                        },
                        "type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "gb_resident",
                            "ie_resident",
                            "share_code",
                            "electronic_travel_authorisation",
                            null
                          ]
                        }
                      },
                      "required": [
                        "next_action",
                        "status",
                        "type"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "complete",
                        "canceled"
                      ]
                    },
                    "types": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "identity",
                          "right_to_rent",
                          "income",
                          "credit_check",
                          "monitor"
                        ]
                      }
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "verified_outputs": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "affordability": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "cost_to_income_ratio": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "cost_to_income_ratio"
                          ]
                        },
                        "first_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "affordability",
                        "first_name",
                        "last_name"
                      ]
                    },
                    "verification_report": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "verification_report"
                              ]
                            },
                            "identity": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "expiration_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "issuing_country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "expiration_date",
                                "first_name",
                                "issuing_country",
                                "last_name",
                                "status",
                                "type"
                              ]
                            },
                            "income": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "affordability": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "cost_to_income_ratio": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "cost_to_income_ratio"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "permanent_employment",
                                    "self_employed",
                                    "savings",
                                    "student",
                                    "benefits",
                                    "pension",
                                    null
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "bank_account": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "bank_name": {
                                                "type": "string"
                                              },
                                              "income_sources": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "category": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "description": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    },
                                                    "total": {
                                                      "type": "number"
                                                    }
                                                  },
                                                  "required": [
                                                    "category",
                                                    "description",
                                                    "total"
                                                  ]
                                                }
                                              }
                                            },
                                            "required": [
                                              "bank_name",
                                              "income_sources"
                                            ]
                                          }
                                        },
                                        "sources": {
                                          "type": "number"
                                        },
                                        "total_monthly": {
                                          "type": "number"
                                        },
                                        "total_yearly": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "items",
                                        "sources",
                                        "total_monthly",
                                        "total_yearly"
                                      ]
                                    },
                                    "document": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "employer_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "employee_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "pay_stubs": {
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "gross_earnings": {
                                                      "type": "number"
                                                    },
                                                    "net_pay": {
                                                      "type": "number"
                                                    },
                                                    "pay_date": {
                                                      "type": [
                                                        "integer",
                                                        "null"
                                                      ],
                                                      "description": "Must be a Unix timestamp in UTC time."
                                                    },
                                                    "pay_frequency": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "gross_earnings",
                                                    "net_pay",
                                                    "pay_date",
                                                    "pay_frequency"
                                                  ]
                                                }
                                              }
                                            },
                                            "required": [
                                              "employer_name",
                                              "employee_name",
                                              "pay_stubs"
                                            ]
                                          }
                                        },
                                        "total_monthly": {
                                          "type": "number"
                                        },
                                        "total_yearly": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "items",
                                        "total_monthly",
                                        "total_yearly"
                                      ]
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "bank_account",
                                        "document",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "bank_account",
                                    "document",
                                    "type"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "status",
                                "type",
                                "verification"
                              ]
                            },
                            "right_to_rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "dob_verification": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "verified",
                                    "self_declared",
                                    null
                                  ]
                                },
                                "share_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "unverified",
                                    "verified",
                                    "failed"
                                  ]
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "gb_resident",
                                    "ie_resident",
                                    "share_code",
                                    "electronic_travel_authorisation"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "dob_verification",
                                "share_code",
                                "status",
                                "type"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "unverified",
                                "verified"
                              ]
                            },
                            "types": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "identity",
                                  "right_to_rent",
                                  "income",
                                  "credit_check"
                                ]
                              }
                            },
                            "verification_session": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "identity",
                            "income",
                            "right_to_rent",
                            "status",
                            "types",
                            "verification_session"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "credit_check",
                    "identity",
                    "income",
                    "monitor",
                    "options",
                    "provided_details",
                    "requirements",
                    "return_url",
                    "right_to_rent",
                    "status",
                    "types",
                    "url",
                    "verified_outputs",
                    "verification_report"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications": {
      "post": {
        "operationId": "applications_create",
        "summary": "Create an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "application_configuration": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the application configuration to create the application with."
                  },
                  "applicants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "share_of_rent": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100,
                          "description": "The share of rent for the applicant."
                        },
                        "customer": {
                          "type": "string",
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the customer to create the applicant for."
                        },
                        "customer_data": {
                          "type": "object",
                          "properties": {
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "name": {
                              "type": "string"
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": "number",
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": "number",
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": "number",
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": "string"
                                },
                                "last_name": {
                                  "type": "string"
                                }
                              }
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "phone": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "email"
                          ],
                          "description": "The customer data of the applicant. Must be supplied if customer is not provided."
                        },
                        "lead_tenant": {
                          "type": "boolean",
                          "description": "Whether the applicant is the lead tenant."
                        },
                        "permitted_occupier": {
                          "type": "boolean",
                          "description": "Whether the applicant is a permitted occupier."
                        },
                        "reference_data": {
                          "type": "object",
                          "properties": {
                            "automatic_reference": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean",
                                  "description": "Enabled automatic reference will automatically reference the customer with a provider."
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": [
                                    "advance_rent",
                                    "canopy",
                                    "homelet",
                                    "let_alliance"
                                  ],
                                  "description": "The provider to use with automatic referencing."
                                }
                              },
                              "required": [
                                "enabled"
                              ],
                              "description": "Automatic reference settings for this reference."
                            }
                          },
                          "description": "The reference data for the applicant."
                        },
                        "requirements": {
                          "type": "object",
                          "properties": {
                            "deposit": {
                              "type": "boolean",
                              "description": "Whether to collect a deposit from the applicant."
                            },
                            "guarantor": {
                              "type": "boolean",
                              "description": "Whether the applicant needs a guarantor."
                            },
                            "pre_qualification": {
                              "type": "boolean",
                              "description": "Whether the applicant needs to complete pre-qualification."
                            }
                          },
                          "description": "The requirements for the applicant."
                        }
                      },
                      "required": [
                        "share_of_rent"
                      ]
                    },
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "The applicants for the application."
                  },
                  "subscription_data": {
                    "type": "object",
                    "properties": {
                      "add_invoice_items": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "integer",
                              "description": "The amount to be charged, represented as a whole integer if possible."
                            },
                            "currency": {
                              "type": "string",
                              "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                            },
                            "description": {
                              "type": "string",
                              "description": "The description for the invoice item, to be displayed to the customer."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "price": {
                              "type": "string",
                              "description": "The ID of the price object."
                            },
                            "tax_percent": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "The tax percentage to use when calculating the tax amount."
                            },
                            "tax_rate": {
                              "type": "string",
                              "description": "The ID of the tax rate object."
                            },
                            "transfer_behavior": {
                              "type": "string",
                              "enum": [
                                "automatic",
                                "owner",
                                "none"
                              ],
                              "description": "The invoice item transfer behavior. The default is automatic."
                            },
                            "transfer_destination": {
                              "type": "string",
                              "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "charge",
                                "rent",
                                "product"
                              ],
                              "description": "The type of the invoice item."
                            },
                            "unit": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The ID of the unit the invoice item is for."
                            }
                          },
                          "required": [
                            "amount",
                            "currency",
                            "description",
                            "tax_percent",
                            "transfer_behavior",
                            "type"
                          ]
                        },
                        "maxItems": 10,
                        "description": "A list of invoice items to add to invoices created by the subscription."
                      },
                      "billing_anchor": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The reference point that aligns future billing cycle dates."
                      },
                      "billing_anchor_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day_of_month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month to anchor billing to."
                          }
                        },
                        "required": [
                          "day_of_month"
                        ],
                        "description": "Configuration for the billing anchor."
                      },
                      "collection_method": {
                        "type": "string",
                        "enum": [
                          "charge_automatically",
                          "send_invoice"
                        ],
                        "description": "The collection method for the subscription."
                      },
                      "coupon": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The identifier of the coupon to apply to the subscription."
                      },
                      "custom_fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 30,
                              "description": "The name of the custom field."
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 30,
                              "description": "The value of the custom field."
                            }
                          },
                          "required": [
                            "name",
                            "value"
                          ]
                        },
                        "maxItems": 4,
                        "description": "Custom fields attached to the subscription invoices."
                      },
                      "days_before_collection": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 7,
                        "description": "The number of days before the due date to attempt collection."
                      },
                      "days_until_due": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The number of days until the invoice is due."
                      },
                      "end_date": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The end date of the subscription."
                      },
                      "end_date_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month for the end date."
                          },
                          "month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12,
                            "description": "The month for the end date."
                          },
                          "year": {
                            "type": "integer",
                            "description": "The year for the end date."
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ],
                        "description": "Configuration to compute the end date of the subscription."
                      },
                      "first_invoice_creation": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "immediately",
                          null
                        ],
                        "description": "Whether to create the first invoice immediately."
                      },
                      "interval_count": {
                        "type": "integer",
                        "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string",
                              "description": "The description of the subscription item."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs to attach to the subscription item."
                            },
                            "price": {
                              "type": "string",
                              "description": "The identifier of the price to use for the subscription item."
                            },
                            "price_data": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "description": "The amount of the price."
                                },
                                "currency": {
                                  "type": "string",
                                  "description": "The currency of the price."
                                },
                                "tax_percent": {
                                  "type": "number",
                                  "description": "The tax percentage to apply to the price."
                                }
                              },
                              "required": [
                                "amount",
                                "currency",
                                "tax_percent"
                              ],
                              "description": "The price data for the subscription item."
                            },
                            "proration_behavior": {
                              "type": "string",
                              "enum": [
                                "create_prorations",
                                "none"
                              ],
                              "description": "Whether to create prorations when creating the subscription item."
                            },
                            "schedule": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer",
                                    "description": "The amount for the scheduled change."
                                  },
                                  "effective_at": {
                                    "type": "integer",
                                    "description": "The date the scheduled change takes effect."
                                  },
                                  "effective_at_config": {
                                    "type": "object",
                                    "properties": {
                                      "day": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 31,
                                        "description": "The day of the month the scheduled change takes effect."
                                      },
                                      "month": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 12,
                                        "description": "The month the scheduled change takes effect."
                                      },
                                      "year": {
                                        "type": "integer",
                                        "description": "The year the scheduled change takes effect."
                                      }
                                    },
                                    "required": [
                                      "day",
                                      "month",
                                      "year"
                                    ],
                                    "description": "Configuration to compute the effective date of the scheduled change."
                                  }
                                },
                                "required": [
                                  "amount"
                                ]
                              },
                              "description": "The schedule for the subscription item."
                            },
                            "tax_rate": {
                              "type": "string",
                              "description": "The identifier of the tax rate for the subscription item."
                            },
                            "transfer_behavior": {
                              "type": "string",
                              "enum": [
                                "automatic",
                                "owner",
                                "none"
                              ],
                              "description": "The transfer behavior for the subscription item."
                            },
                            "transfer_destination": {
                              "type": "string",
                              "description": "The identifier of the connected account to transfer funds to."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "charge",
                                "rent",
                                "product"
                              ],
                              "description": "The type of the subscription item."
                            },
                            "unit": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the unit associated with the subscription item."
                            }
                          },
                          "required": [
                            "price_data",
                            "type"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 10,
                        "description": "The items for the subscription. Required when interval is not custom."
                      },
                      "phases": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "start_date": {
                              "type": "integer",
                              "description": "The start date of the phase."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string",
                                    "description": "The description of the subscription item."
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs to attach to the subscription item."
                                  },
                                  "price": {
                                    "type": "string",
                                    "description": "The identifier of the price to use for the subscription item."
                                  },
                                  "price_data": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "number",
                                        "description": "The amount of the price."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "The currency of the price."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "description": "The tax percentage to apply to the price."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "tax_percent"
                                    ],
                                    "description": "The price data for the subscription item."
                                  },
                                  "proration_behavior": {
                                    "type": "string",
                                    "enum": [
                                      "create_prorations",
                                      "none"
                                    ],
                                    "description": "Whether to create prorations when creating the subscription item."
                                  },
                                  "schedule": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "integer",
                                          "description": "The amount for the scheduled change."
                                        },
                                        "effective_at": {
                                          "type": "integer",
                                          "description": "The date the scheduled change takes effect."
                                        },
                                        "effective_at_config": {
                                          "type": "object",
                                          "properties": {
                                            "day": {
                                              "type": "integer",
                                              "minimum": 1,
                                              "maximum": 31,
                                              "description": "The day of the month the scheduled change takes effect."
                                            },
                                            "month": {
                                              "type": "integer",
                                              "minimum": 1,
                                              "maximum": 12,
                                              "description": "The month the scheduled change takes effect."
                                            },
                                            "year": {
                                              "type": "integer",
                                              "description": "The year the scheduled change takes effect."
                                            }
                                          },
                                          "required": [
                                            "day",
                                            "month",
                                            "year"
                                          ],
                                          "description": "Configuration to compute the effective date of the scheduled change."
                                        }
                                      },
                                      "required": [
                                        "amount"
                                      ]
                                    },
                                    "description": "The schedule for the subscription item."
                                  },
                                  "tax_rate": {
                                    "type": "string",
                                    "description": "The identifier of the tax rate for the subscription item."
                                  },
                                  "transfer_behavior": {
                                    "type": "string",
                                    "enum": [
                                      "automatic",
                                      "owner",
                                      "none"
                                    ],
                                    "description": "The transfer behavior for the subscription item."
                                  },
                                  "transfer_destination": {
                                    "type": "string",
                                    "description": "The identifier of the connected account to transfer funds to."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "charge",
                                      "rent",
                                      "product"
                                    ],
                                    "description": "The type of the subscription item."
                                  },
                                  "unit": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the unit associated with the subscription item."
                                  }
                                },
                                "required": [
                                  "price_data",
                                  "type"
                                ]
                              },
                              "minItems": 1,
                              "maxItems": 10,
                              "description": "The items in the phase."
                            }
                          },
                          "required": [
                            "start_date",
                            "items"
                          ]
                        },
                        "minItems": 1,
                        "description": "The phases of the subscription. Required when interval is custom."
                      },
                      "start_date": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The start date of the subscription."
                      },
                      "start_date_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month for the start date."
                          },
                          "month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12,
                            "description": "The month for the start date."
                          },
                          "year": {
                            "type": "integer",
                            "description": "The year for the start date."
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ],
                        "description": "Configuration to compute the start date of the subscription."
                      },
                      "interval": {
                        "type": "string",
                        "enum": [
                          "month",
                          "week",
                          "custom",
                          "upfront"
                        ],
                        "description": "The billing interval for the subscription."
                      }
                    },
                    "required": [
                      "collection_method",
                      "interval"
                    ],
                    "description": "The subscription data for the application."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "active_tenancy",
                      "let_only",
                      "renewal",
                      "standard"
                    ],
                    "description": "The type of the application."
                  },
                  "unit": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the unit to create the application with."
                  },
                  "accept": {
                    "type": "boolean",
                    "description": "Set to true to attempt to accept this application immediately. The parameter defaults to false and is only allowed when type=active_tenancy."
                  },
                  "advance_rent_amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999900,
                    "description": "The advance rent amount for the application."
                  },
                  "assignee": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the assignee for the application."
                  },
                  "contract_options": {
                    "type": "object",
                    "properties": {
                      "automatic_counter_signature": {
                        "type": "boolean",
                        "description": "Whether to automatically counter sign the contract."
                      },
                      "legal_entity": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The legal entity for the contract."
                      },
                      "owner_signature_required": {
                        "type": "boolean",
                        "description": "Whether the owner signature is required."
                      },
                      "send_applicant_email": {
                        "type": "boolean",
                        "description": "Whether to send an email to the applicant."
                      },
                      "send_owner_completion_email": {
                        "type": "boolean",
                        "description": "Whether to send the owner a completion email."
                      }
                    },
                    "description": "The contract options for the application."
                  },
                  "contract_template": {
                    "type": "string",
                    "description": "The contract template to use for the application. Required if type is one of standard, renewal or let_only."
                  },
                  "create_subscriptions": {
                    "type": "boolean",
                    "default": true,
                    "description": "Whether to create subscriptions for this application. Defaults to true. Set to false to skip all subscription creation."
                  },
                  "deal_assignee": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the deal assignee for the application."
                  },
                  "deposit_amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999900,
                    "description": "The deposit amount for the application."
                  },
                  "end_behavior": {
                    "type": "string",
                    "enum": [
                      "roll",
                      "complete"
                    ],
                    "description": "The end behavior for the application. Can only be set to complete when an end date is provided."
                  },
                  "end_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The end date of the application."
                  },
                  "end_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12
                      },
                      "year": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "The end date configuration for the application."
                  },
                  "holding_fee_amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 0,
                    "maximum": 99999900,
                    "description": "The holding fee amount for the application."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "move_in_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The date the tenant is expected to move in. Useful for short term lets where the actual move in date may differ from the contractual move in date."
                  },
                  "move_out_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The date the tenant is expected to move out. Useful for short term lets where the actual move out date may differ from the contractual move out date."
                  },
                  "owner_options": {
                    "type": "object",
                    "properties": {
                      "apply_unit_fees": {
                        "type": "boolean",
                        "description": "Whether to apply unit fees to the owner."
                      }
                    },
                    "description": "The owner options for the application."
                  },
                  "partial_payment": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 99999900,
                        "description": "The partial payment amount."
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The description of the partial payment."
                      }
                    },
                    "required": [
                      "amount",
                      "description"
                    ],
                    "description": "The partial payment for the application."
                  },
                  "send_email": {
                    "type": "boolean",
                    "description": "Whether to send an email to the applicant when the application is created."
                  },
                  "start_date": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The start date of the application."
                  },
                  "start_date_config": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "day": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 31
                      },
                      "month": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 12
                      },
                      "year": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "day",
                      "month",
                      "year"
                    ],
                    "description": "The start date configuration for the application."
                  },
                  "update_unit_rent": {
                    "type": "boolean",
                    "description": "Whether to update the unit rent amount with the pricing used for the application."
                  }
                },
                "required": [
                  "application_configuration",
                  "applicants",
                  "subscription_data",
                  "type",
                  "unit"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the task object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "applications_list",
        "summary": "List all applications",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of applications.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "application"
                            ]
                          },
                          "advance_rent_amount": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The advance rent amount for the application."
                          },
                          "applicants": {
                            "type": "object",
                            "properties": {
                              "count": {
                                "type": "number",
                                "description": "Total number of items in the list.",
                                "example": 1
                              },
                              "has_more": {
                                "type": "boolean",
                                "description": "Whether more items are available.",
                                "example": false
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "list"
                                ]
                              },
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "application.applicant"
                                      ]
                                    },
                                    "application": {
                                      "type": "string",
                                      "pattern": "^[a-zA-Z0-9_]+$",
                                      "description": "The identifier of the application the applicant belongs to."
                                    },
                                    "advance_rent": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The advance rent amount for the applicant."
                                        },
                                        "paid": {
                                          "type": "boolean",
                                          "description": "Whether the advance rent has been paid."
                                        },
                                        "paid_off_platform": {
                                          "type": "boolean",
                                          "description": "Whether the advance rent was paid off platform."
                                        },
                                        "transaction": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The identifier of the advance rent transaction."
                                        }
                                      },
                                      "description": "The advance rent details for the applicant."
                                    },
                                    "currency": {
                                      "type": "string",
                                      "enum": [
                                        "gbp",
                                        "usd",
                                        "eur",
                                        "sek"
                                      ],
                                      "description": "The currency for the applicant.",
                                      "example": "gbp"
                                    },
                                    "customer": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": {}
                                        }
                                      ],
                                      "description": "The customer associated with the applicant."
                                    },
                                    "deposit": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The deposit amount for the applicant."
                                        },
                                        "paid": {
                                          "type": "boolean",
                                          "description": "Whether the deposit has been paid."
                                        },
                                        "paid_off_platform": {
                                          "type": "boolean",
                                          "description": "Whether the deposit was paid off platform."
                                        },
                                        "transaction": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The identifier of the deposit transaction."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "paid",
                                        "paid_off_platform",
                                        "transaction"
                                      ],
                                      "description": "The deposit details for the applicant."
                                    },
                                    "guarantor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the guarantor for the applicant."
                                    },
                                    "guarantor_contract": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the guarantor contract for the applicant."
                                    },
                                    "holding_fee": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The holding fee amount for the applicant."
                                        },
                                        "paid": {
                                          "type": "boolean",
                                          "description": "Whether the holding fee has been paid."
                                        },
                                        "paid_off_platform": {
                                          "type": "boolean",
                                          "description": "Whether the holding fee was paid off platform."
                                        },
                                        "transaction": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The identifier of the holding fee transaction."
                                        }
                                      },
                                      "description": "The holding fee details for the applicant."
                                    },
                                    "lead_tenant": {
                                      "type": "boolean",
                                      "description": "Whether the applicant is the lead tenant."
                                    },
                                    "pets": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "age": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The age of the pet."
                                          },
                                          "name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The name of the pet."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "dog",
                                              "cat",
                                              "small_animal",
                                              "bird",
                                              "fish",
                                              "other"
                                            ],
                                            "description": "The species of the pet."
                                          }
                                        },
                                        "required": [
                                          "age",
                                          "name",
                                          "type"
                                        ]
                                      },
                                      "description": "The pets of the applicant."
                                    },
                                    "permitted_occupier": {
                                      "type": "boolean",
                                      "description": "Whether the applicant is a permitted occupier."
                                    },
                                    "pre_qualification": {
                                      "type": "object",
                                      "properties": {
                                        "affordability": {
                                          "type": "object",
                                          "properties": {
                                            "company_name": {
                                              "type": "string",
                                              "description": "The name of the company the applicant works for."
                                            },
                                            "gross_annual_salary": {
                                              "type": "number",
                                              "description": "The gross annual salary of the applicant."
                                            },
                                            "role": {
                                              "type": "string",
                                              "description": "The role of the applicant."
                                            }
                                          },
                                          "description": "The affordability details for the applicant."
                                        },
                                        "nationality": {
                                          "type": "string",
                                          "description": "The nationality of the applicant."
                                        }
                                      },
                                      "description": "The pre-qualification details for the applicant."
                                    },
                                    "requirements": {
                                      "type": "object",
                                      "properties": {
                                        "guarantor": {
                                          "type": "boolean",
                                          "description": "Whether the applicant needs a guarantor."
                                        }
                                      },
                                      "required": [
                                        "guarantor"
                                      ]
                                    },
                                    "share_of_rent": {
                                      "type": "number",
                                      "description": "The share of rent for the applicant."
                                    },
                                    "status": {
                                      "type": "string",
                                      "description": "The status of the applicant."
                                    },
                                    "tos_acceptance": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "date": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "description": "The date the terms of service were accepted."
                                        },
                                        "ip": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "description": "The IP address from which the terms of service were accepted."
                                        }
                                      },
                                      "required": [
                                        "date",
                                        "ip"
                                      ],
                                      "description": "The terms of service acceptance details for the applicant."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "application",
                                    "advance_rent",
                                    "currency",
                                    "customer",
                                    "deposit",
                                    "guarantor",
                                    "guarantor_contract",
                                    "holding_fee",
                                    "lead_tenant",
                                    "permitted_occupier",
                                    "requirements",
                                    "share_of_rent",
                                    "status",
                                    "tos_acceptance"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "count",
                              "has_more",
                              "object",
                              "data"
                            ],
                            "description": "The applicants for the application."
                          },
                          "application_configuration": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The identifier of the application configuration."
                          },
                          "application_mode": {
                            "type": "string",
                            "enum": [
                              "classic",
                              "configuration"
                            ],
                            "description": "The mode of the application."
                          },
                          "assignee": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the assignee for the application."
                          },
                          "building": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ],
                            "description": "The identifier of the building for the application."
                          },
                          "building_snapshot": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "The name of the building."
                              },
                              "single_unit": {
                                "type": "boolean",
                                "description": "Whether the building has a single unit."
                              }
                            },
                            "required": [
                              "name",
                              "single_unit"
                            ],
                            "description": "A snapshot of the building at the time of the application."
                          },
                          "completed_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date and time the application was completed."
                          },
                          "contract": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The identifier of the contract for the application."
                          },
                          "contract_address": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The address of the contract for the application."
                          },
                          "contract_options": {
                            "type": "object",
                            "properties": {
                              "automatic_counter_signature": {
                                "type": "boolean",
                                "description": "Whether to automatically counter sign the contract."
                              },
                              "legal_entity": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The legal entity for the contract."
                              },
                              "owner_signature_required": {
                                "type": "boolean",
                                "description": "Whether the owner signature is required."
                              },
                              "send_applicant_email": {
                                "type": "boolean",
                                "description": "Whether to send an email to the applicant."
                              },
                              "send_owner_completion_email": {
                                "type": "boolean",
                                "description": "Whether to send the owner a completion email."
                              }
                            },
                            "description": "The contract options for the application."
                          },
                          "contract_template": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The identifier of the contract template for the application."
                          },
                          "current_step": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "advance_rent"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Advance rent",
                                "description": "The advance rent step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "completion"
                                    ],
                                    "description": "The type of the step."
                                  },
                                  "completion": {
                                    "type": "object",
                                    "properties": {
                                      "behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "manual"
                                        ],
                                        "description": "The completion behavior for the step."
                                      }
                                    },
                                    "required": [
                                      "behavior"
                                    ],
                                    "description": "The completion settings for the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "completion"
                                ],
                                "title": "Completion",
                                "description": "The completion step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "contract"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Contract",
                                "description": "The contract step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "deposit"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Deposit",
                                "description": "The deposit step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "holding_fee"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Holding fee",
                                "description": "The holding fee step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "partial_payment"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Partial payment",
                                "description": "The partial payment step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "payment_method"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Payment method",
                                "description": "The payment method step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "pre_qualification"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Pre-qualification",
                                "description": "The pre-qualification step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "referencing"
                                    ]
                                  },
                                  "referencing": {
                                    "type": "object",
                                    "properties": {
                                      "automatic_reference": {
                                        "type": "object",
                                        "properties": {
                                          "enabled": {
                                            "type": "boolean",
                                            "description": "Whether the automatic reference is enabled."
                                          },
                                          "provider": {
                                            "type": "string",
                                            "enum": [
                                              "advance_rent",
                                              "canopy",
                                              "homelet",
                                              "let_alliance"
                                            ],
                                            "description": "The provider to use with automatic referencing."
                                          }
                                        },
                                        "required": [
                                          "enabled",
                                          "provider"
                                        ],
                                        "description": "The automatic reference settings."
                                      }
                                    },
                                    "description": "The referencing settings for the application configuration step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Referencing",
                                "description": "The referencing step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "verification_session"
                                    ],
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Verification session",
                                "description": "The verification session step."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The unique identifier of the step."
                                  },
                                  "next_step": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the next step in the configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "waitpoint"
                                    ]
                                  },
                                  "waitpoint": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "description": "The name of the waitpoint."
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "description": "The waitpoint settings for the application configuration step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "next_step",
                                  "type"
                                ],
                                "title": "Waitpoint",
                                "description": "The waitpoint step."
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The current step of the application configuration."
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "The currency for the application.",
                            "example": "gbp"
                          },
                          "deal_assignee": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the deal assignee for the application."
                          },
                          "deposit_amount": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The deposit amount for the application."
                          },
                          "has_owner": {
                            "type": "boolean",
                            "description": "Whether the application has an owner."
                          },
                          "holding_fee_amount": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The holding fee amount for the application."
                          },
                          "end_behavior": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "roll",
                              "complete",
                              null
                            ],
                            "description": "The end behavior for the application."
                          },
                          "end_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The end date of the application."
                          },
                          "from_application": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "action": {
                                "type": "string",
                                "enum": [
                                  "revision"
                                ],
                                "description": "The action of the application."
                              },
                              "application": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application."
                              }
                            },
                            "required": [
                              "action",
                              "application"
                            ],
                            "description": "The from application for the application."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "The metadata for the application."
                          },
                          "move_in_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The expected move in date for the application."
                          },
                          "move_out_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The expected move out date for the application."
                          },
                          "open": {
                            "type": "boolean",
                            "description": "Whether the application is open."
                          },
                          "owner_options": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "apply_unit_fees": {
                                "type": "boolean",
                                "description": "Whether to apply unit fees to the owner."
                              }
                            },
                            "description": "The owner options for the application."
                          },
                          "partial_payment": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "amount": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 99999900,
                                "description": "The partial payment amount."
                              },
                              "description": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The description of the partial payment."
                              }
                            },
                            "required": [
                              "amount",
                              "description"
                            ],
                            "description": "The partial payment details for the application."
                          },
                          "rent_term": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The rent term for the application."
                          },
                          "start_date": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The start date of the application."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the application."
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "The identifier of the step."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "The status of the step."
                                },
                                "type": {
                                  "type": "string",
                                  "description": "The type of the step."
                                }
                              },
                              "required": [
                                "id",
                                "status",
                                "type"
                              ]
                            },
                            "description": "The steps of the application configuration."
                          },
                          "subscription_data": {
                            "type": "object",
                            "properties": {
                              "add_invoice_items": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount to be charged, represented as a whole integer if possible."
                                    },
                                    "currency": {
                                      "type": "string",
                                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                    },
                                    "description": {
                                      "type": "string",
                                      "description": "The description for the invoice item, to be displayed to the customer."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The ID of the price object."
                                    },
                                    "tax_percent": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 100,
                                      "description": "The tax percentage to use when calculating the tax amount."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The ID of the tax rate object."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The invoice item transfer behavior. The default is automatic."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the invoice item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The ID of the unit the invoice item is for."
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "currency",
                                    "description",
                                    "tax_percent",
                                    "transfer_behavior",
                                    "type"
                                  ]
                                },
                                "maxItems": 10,
                                "description": "A list of invoice items to add to invoices created by the subscription."
                              },
                              "billing_anchor": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "The reference point that aligns future billing cycle dates."
                              },
                              "billing_anchor_config": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "day_of_month": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 31,
                                    "description": "The day of the month to anchor billing to."
                                  }
                                },
                                "required": [
                                  "day_of_month"
                                ],
                                "description": "Configuration for the billing anchor."
                              },
                              "collection_method": {
                                "type": "string",
                                "enum": [
                                  "charge_automatically",
                                  "send_invoice"
                                ],
                                "description": "The collection method for the subscription."
                              },
                              "coupon": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the coupon to apply to the subscription."
                              },
                              "custom_fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "maxLength": 30,
                                      "description": "The name of the custom field."
                                    },
                                    "value": {
                                      "type": "string",
                                      "maxLength": 30,
                                      "description": "The value of the custom field."
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value"
                                  ]
                                },
                                "maxItems": 4,
                                "description": "Custom fields attached to the subscription invoices."
                              },
                              "days_before_collection": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 7,
                                "description": "The number of days before the due date to attempt collection."
                              },
                              "days_until_due": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "minimum": 0,
                                "description": "The number of days until the invoice is due."
                              },
                              "end_date": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "The end date of the subscription."
                              },
                              "end_date_config": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "day": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 31,
                                    "description": "The day of the month for the end date."
                                  },
                                  "month": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 12,
                                    "description": "The month for the end date."
                                  },
                                  "year": {
                                    "type": "integer",
                                    "description": "The year for the end date."
                                  }
                                },
                                "required": [
                                  "day",
                                  "month",
                                  "year"
                                ],
                                "description": "Configuration to compute the end date of the subscription."
                              },
                              "first_invoice_creation": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "immediately",
                                  null
                                ],
                                "description": "Whether to create the first invoice immediately."
                              },
                              "interval_count": {
                                "type": "integer",
                                "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items for the subscription. Required when interval is not custom."
                              },
                              "phases": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start_date": {
                                      "type": "integer",
                                      "description": "The start date of the phase."
                                    },
                                    "items": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "description": {
                                            "type": "string",
                                            "description": "The description of the subscription item."
                                          },
                                          "metadata": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "additionalProperties": {
                                              "type": "string"
                                            },
                                            "description": "Set of key-value pairs to attach to the subscription item."
                                          },
                                          "price": {
                                            "type": "string",
                                            "description": "The identifier of the price to use for the subscription item."
                                          },
                                          "price_data": {
                                            "type": "object",
                                            "properties": {
                                              "amount": {
                                                "type": "number",
                                                "description": "The amount of the price."
                                              },
                                              "currency": {
                                                "type": "string",
                                                "description": "The currency of the price."
                                              },
                                              "tax_percent": {
                                                "type": "number",
                                                "description": "The tax percentage to apply to the price."
                                              }
                                            },
                                            "required": [
                                              "amount",
                                              "currency",
                                              "tax_percent"
                                            ],
                                            "description": "The price data for the subscription item."
                                          },
                                          "proration_behavior": {
                                            "type": "string",
                                            "enum": [
                                              "create_prorations",
                                              "none"
                                            ],
                                            "description": "Whether to create prorations when creating the subscription item."
                                          },
                                          "schedule": {
                                            "type": [
                                              "array",
                                              "null"
                                            ],
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "integer",
                                                  "description": "The amount for the scheduled change."
                                                },
                                                "effective_at": {
                                                  "type": "integer",
                                                  "description": "The date the scheduled change takes effect."
                                                },
                                                "effective_at_config": {
                                                  "type": "object",
                                                  "properties": {
                                                    "day": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 31,
                                                      "description": "The day of the month the scheduled change takes effect."
                                                    },
                                                    "month": {
                                                      "type": "integer",
                                                      "minimum": 1,
                                                      "maximum": 12,
                                                      "description": "The month the scheduled change takes effect."
                                                    },
                                                    "year": {
                                                      "type": "integer",
                                                      "description": "The year the scheduled change takes effect."
                                                    }
                                                  },
                                                  "required": [
                                                    "day",
                                                    "month",
                                                    "year"
                                                  ],
                                                  "description": "Configuration to compute the effective date of the scheduled change."
                                                }
                                              },
                                              "required": [
                                                "amount"
                                              ]
                                            },
                                            "description": "The schedule for the subscription item."
                                          },
                                          "tax_rate": {
                                            "type": "string",
                                            "description": "The identifier of the tax rate for the subscription item."
                                          },
                                          "transfer_behavior": {
                                            "type": "string",
                                            "enum": [
                                              "automatic",
                                              "owner",
                                              "none"
                                            ],
                                            "description": "The transfer behavior for the subscription item."
                                          },
                                          "transfer_destination": {
                                            "type": "string",
                                            "description": "The identifier of the connected account to transfer funds to."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "charge",
                                              "rent",
                                              "product"
                                            ],
                                            "description": "The type of the subscription item."
                                          },
                                          "unit": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the unit associated with the subscription item."
                                          }
                                        },
                                        "required": [
                                          "price_data",
                                          "type"
                                        ]
                                      },
                                      "minItems": 1,
                                      "maxItems": 10,
                                      "description": "The items in the phase."
                                    }
                                  },
                                  "required": [
                                    "start_date",
                                    "items"
                                  ]
                                },
                                "minItems": 1,
                                "description": "The phases of the subscription. Required when interval is custom."
                              },
                              "start_date": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "The start date of the subscription."
                              },
                              "start_date_config": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "day": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 31,
                                    "description": "The day of the month for the start date."
                                  },
                                  "month": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 12,
                                    "description": "The month for the start date."
                                  },
                                  "year": {
                                    "type": "integer",
                                    "description": "The year for the start date."
                                  }
                                },
                                "required": [
                                  "day",
                                  "month",
                                  "year"
                                ],
                                "description": "Configuration to compute the start date of the subscription."
                              },
                              "interval": {
                                "type": "string",
                                "enum": [
                                  "month",
                                  "week",
                                  "custom",
                                  "upfront"
                                ],
                                "description": "The billing interval for the subscription."
                              }
                            },
                            "required": [
                              "collection_method",
                              "interval"
                            ],
                            "description": "The subscription data for the application."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "active_tenancy",
                              "let_only",
                              "renewal",
                              "standard"
                            ],
                            "description": "The type of the application."
                          },
                          "unit": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ],
                            "description": "The identifier of the unit for the application."
                          },
                          "unit_snapshot": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "The name of the unit."
                              }
                            },
                            "required": [
                              "name"
                            ],
                            "description": "A snapshot of the unit at the time of the application."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "advance_rent_amount",
                          "application_configuration",
                          "application_mode",
                          "assignee",
                          "building",
                          "building_snapshot",
                          "completed_at",
                          "contract",
                          "contract_address",
                          "contract_options",
                          "contract_template",
                          "current_step",
                          "currency",
                          "deal_assignee",
                          "deposit_amount",
                          "has_owner",
                          "holding_fee_amount",
                          "end_behavior",
                          "end_date",
                          "from_application",
                          "move_in_date",
                          "move_out_date",
                          "open",
                          "owner_options",
                          "partial_payment",
                          "rent_term",
                          "start_date",
                          "status",
                          "subscription_data",
                          "type",
                          "unit",
                          "unit_snapshot"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}": {
      "get": {
        "operationId": "applications_retrieve",
        "summary": "Retrieve an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an application object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "applications_update",
        "summary": "Update an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "advance_rent_amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 99999900,
                    "description": "The advance rent amount for the application."
                  },
                  "contract_options": {
                    "type": "object",
                    "properties": {
                      "automatic_counter_signature": {
                        "type": "boolean",
                        "description": "Whether to automatically counter sign the contract."
                      },
                      "legal_entity": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The legal entity for the contract."
                      },
                      "owner_signature_required": {
                        "type": "boolean",
                        "description": "Whether the owner signature is required."
                      },
                      "send_applicant_email": {
                        "type": "boolean",
                        "description": "Whether to send an email to the applicant."
                      },
                      "send_owner_completion_email": {
                        "type": "boolean",
                        "description": "Whether to send the owner a completion email."
                      }
                    },
                    "description": "The contract options for the application."
                  },
                  "contract_template": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The contract template to use for the application."
                  },
                  "deposit_amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 99999900,
                    "description": "The deposit amount for the application."
                  },
                  "end_behavior": {
                    "type": "string",
                    "enum": [
                      "roll",
                      "complete"
                    ],
                    "description": "The end behavior for the application. Can only be set to complete when an end date is provided."
                  },
                  "unit": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the unit to update the application with."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the application object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/accept": {
      "post": {
        "operationId": "applications_accept",
        "summary": "Accept an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the application object if the accept succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/complete": {
      "post": {
        "operationId": "applications_complete",
        "summary": "Complete an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the application object if the completion succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/cancel": {
      "post": {
        "operationId": "applications_cancel",
        "summary": "Cancel an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the application object if the cancellation succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/progress": {
      "post": {
        "operationId": "applications_progress",
        "summary": "Progress an application",
        "description": "Advance the application to the next step. Used to progress past waitpoints in configuration mode.",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the application object if the progress succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application"
                      ]
                    },
                    "advance_rent_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The advance rent amount for the application."
                    },
                    "applicants": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "number",
                          "description": "Total number of items in the list.",
                          "example": 1
                        },
                        "has_more": {
                          "type": "boolean",
                          "description": "Whether more items are available.",
                          "example": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "list"
                          ]
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "application.applicant"
                                ]
                              },
                              "application": {
                                "type": "string",
                                "pattern": "^[a-zA-Z0-9_]+$",
                                "description": "The identifier of the application the applicant belongs to."
                              },
                              "advance_rent": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The advance rent amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the advance rent was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the advance rent transaction."
                                  }
                                },
                                "description": "The advance rent details for the applicant."
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "usd",
                                  "eur",
                                  "sek"
                                ],
                                "description": "The currency for the applicant.",
                                "example": "gbp"
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                ],
                                "description": "The customer associated with the applicant."
                              },
                              "deposit": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The deposit amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the deposit has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the deposit was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the deposit transaction."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "paid",
                                  "paid_off_platform",
                                  "transaction"
                                ],
                                "description": "The deposit details for the applicant."
                              },
                              "guarantor": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor for the applicant."
                              },
                              "guarantor_contract": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the guarantor contract for the applicant."
                              },
                              "holding_fee": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The holding fee amount for the applicant."
                                  },
                                  "paid": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee has been paid."
                                  },
                                  "paid_off_platform": {
                                    "type": "boolean",
                                    "description": "Whether the holding fee was paid off platform."
                                  },
                                  "transaction": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the holding fee transaction."
                                  }
                                },
                                "description": "The holding fee details for the applicant."
                              },
                              "lead_tenant": {
                                "type": "boolean",
                                "description": "Whether the applicant is the lead tenant."
                              },
                              "pets": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "age": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "The age of the pet."
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The name of the pet."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "dog",
                                        "cat",
                                        "small_animal",
                                        "bird",
                                        "fish",
                                        "other"
                                      ],
                                      "description": "The species of the pet."
                                    }
                                  },
                                  "required": [
                                    "age",
                                    "name",
                                    "type"
                                  ]
                                },
                                "description": "The pets of the applicant."
                              },
                              "permitted_occupier": {
                                "type": "boolean",
                                "description": "Whether the applicant is a permitted occupier."
                              },
                              "pre_qualification": {
                                "type": "object",
                                "properties": {
                                  "affordability": {
                                    "type": "object",
                                    "properties": {
                                      "company_name": {
                                        "type": "string",
                                        "description": "The name of the company the applicant works for."
                                      },
                                      "gross_annual_salary": {
                                        "type": "number",
                                        "description": "The gross annual salary of the applicant."
                                      },
                                      "role": {
                                        "type": "string",
                                        "description": "The role of the applicant."
                                      }
                                    },
                                    "description": "The affordability details for the applicant."
                                  },
                                  "nationality": {
                                    "type": "string",
                                    "description": "The nationality of the applicant."
                                  }
                                },
                                "description": "The pre-qualification details for the applicant."
                              },
                              "requirements": {
                                "type": "object",
                                "properties": {
                                  "guarantor": {
                                    "type": "boolean",
                                    "description": "Whether the applicant needs a guarantor."
                                  }
                                },
                                "required": [
                                  "guarantor"
                                ]
                              },
                              "share_of_rent": {
                                "type": "number",
                                "description": "The share of rent for the applicant."
                              },
                              "status": {
                                "type": "string",
                                "description": "The status of the applicant."
                              },
                              "tos_acceptance": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "The date the terms of service were accepted."
                                  },
                                  "ip": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The IP address from which the terms of service were accepted."
                                  }
                                },
                                "required": [
                                  "date",
                                  "ip"
                                ],
                                "description": "The terms of service acceptance details for the applicant."
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "application",
                              "advance_rent",
                              "currency",
                              "customer",
                              "deposit",
                              "guarantor",
                              "guarantor_contract",
                              "holding_fee",
                              "lead_tenant",
                              "permitted_occupier",
                              "requirements",
                              "share_of_rent",
                              "status",
                              "tos_acceptance"
                            ]
                          }
                        }
                      },
                      "required": [
                        "count",
                        "has_more",
                        "object",
                        "data"
                      ],
                      "description": "The applicants for the application."
                    },
                    "application_configuration": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application configuration."
                    },
                    "application_mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application."
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the assignee for the application."
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the building for the application."
                    },
                    "building_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the building."
                        },
                        "single_unit": {
                          "type": "boolean",
                          "description": "Whether the building has a single unit."
                        }
                      },
                      "required": [
                        "name",
                        "single_unit"
                      ],
                      "description": "A snapshot of the building at the time of the application."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the application was completed."
                    },
                    "contract": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract for the application."
                    },
                    "contract_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The address of the contract for the application."
                    },
                    "contract_options": {
                      "type": "object",
                      "properties": {
                        "automatic_counter_signature": {
                          "type": "boolean",
                          "description": "Whether to automatically counter sign the contract."
                        },
                        "legal_entity": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The legal entity for the contract."
                        },
                        "owner_signature_required": {
                          "type": "boolean",
                          "description": "Whether the owner signature is required."
                        },
                        "send_applicant_email": {
                          "type": "boolean",
                          "description": "Whether to send an email to the applicant."
                        },
                        "send_owner_completion_email": {
                          "type": "boolean",
                          "description": "Whether to send the owner a completion email."
                        }
                      },
                      "description": "The contract options for the application."
                    },
                    "contract_template": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the contract template for the application."
                    },
                    "current_step": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The current step of the application configuration."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the application.",
                      "example": "gbp"
                    },
                    "deal_assignee": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the deal assignee for the application."
                    },
                    "deposit_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The deposit amount for the application."
                    },
                    "has_owner": {
                      "type": "boolean",
                      "description": "Whether the application has an owner."
                    },
                    "holding_fee_amount": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The holding fee amount for the application."
                    },
                    "end_behavior": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "roll",
                        "complete",
                        null
                      ],
                      "description": "The end behavior for the application."
                    },
                    "end_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The end date of the application."
                    },
                    "from_application": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "enum": [
                            "revision"
                          ],
                          "description": "The action of the application."
                        },
                        "application": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "pattern": "^[a-zA-Z0-9_]+$",
                          "description": "The identifier of the application."
                        }
                      },
                      "required": [
                        "action",
                        "application"
                      ],
                      "description": "The from application for the application."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the application."
                    },
                    "move_in_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move in date for the application."
                    },
                    "move_out_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The expected move out date for the application."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Whether the application is open."
                    },
                    "owner_options": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "apply_unit_fees": {
                          "type": "boolean",
                          "description": "Whether to apply unit fees to the owner."
                        }
                      },
                      "description": "The owner options for the application."
                    },
                    "partial_payment": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 99999900,
                          "description": "The partial payment amount."
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The description of the partial payment."
                        }
                      },
                      "required": [
                        "amount",
                        "description"
                      ],
                      "description": "The partial payment details for the application."
                    },
                    "rent_term": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The rent term for the application."
                    },
                    "start_date": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The start date of the application."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the application."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The identifier of the step."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the step."
                          },
                          "type": {
                            "type": "string",
                            "description": "The type of the step."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "type"
                        ]
                      },
                      "description": "The steps of the application configuration."
                    },
                    "subscription_data": {
                      "type": "object",
                      "properties": {
                        "add_invoice_items": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "integer",
                                "description": "The amount to be charged, represented as a whole integer if possible."
                              },
                              "currency": {
                                "type": "string",
                                "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                              },
                              "description": {
                                "type": "string",
                                "description": "The description for the invoice item, to be displayed to the customer."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "price": {
                                "type": "string",
                                "description": "The ID of the price object."
                              },
                              "tax_percent": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 100,
                                "description": "The tax percentage to use when calculating the tax amount."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The ID of the tax rate object."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The invoice item transfer behavior. The default is automatic."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the invoice item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The ID of the unit the invoice item is for."
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "description",
                              "tax_percent",
                              "transfer_behavior",
                              "type"
                            ]
                          },
                          "maxItems": 10,
                          "description": "A list of invoice items to add to invoices created by the subscription."
                        },
                        "billing_anchor": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The reference point that aligns future billing cycle dates."
                        },
                        "billing_anchor_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day_of_month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month to anchor billing to."
                            }
                          },
                          "required": [
                            "day_of_month"
                          ],
                          "description": "Configuration for the billing anchor."
                        },
                        "collection_method": {
                          "type": "string",
                          "enum": [
                            "charge_automatically",
                            "send_invoice"
                          ],
                          "description": "The collection method for the subscription."
                        },
                        "coupon": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the coupon to apply to the subscription."
                        },
                        "custom_fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The name of the custom field."
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 30,
                                "description": "The value of the custom field."
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ]
                          },
                          "maxItems": 4,
                          "description": "Custom fields attached to the subscription invoices."
                        },
                        "days_before_collection": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 7,
                          "description": "The number of days before the due date to attempt collection."
                        },
                        "days_until_due": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "minimum": 0,
                          "description": "The number of days until the invoice is due."
                        },
                        "end_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The end date of the subscription."
                        },
                        "end_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the end date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the end date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the end date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the end date of the subscription."
                        },
                        "first_invoice_creation": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "immediately",
                            null
                          ],
                          "description": "Whether to create the first invoice immediately."
                        },
                        "interval_count": {
                          "type": "integer",
                          "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "description": "The description of the subscription item."
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs to attach to the subscription item."
                              },
                              "price": {
                                "type": "string",
                                "description": "The identifier of the price to use for the subscription item."
                              },
                              "price_data": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "number",
                                    "description": "The amount of the price."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The currency of the price."
                                  },
                                  "tax_percent": {
                                    "type": "number",
                                    "description": "The tax percentage to apply to the price."
                                  }
                                },
                                "required": [
                                  "amount",
                                  "currency",
                                  "tax_percent"
                                ],
                                "description": "The price data for the subscription item."
                              },
                              "proration_behavior": {
                                "type": "string",
                                "enum": [
                                  "create_prorations",
                                  "none"
                                ],
                                "description": "Whether to create prorations when creating the subscription item."
                              },
                              "schedule": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "integer",
                                      "description": "The amount for the scheduled change."
                                    },
                                    "effective_at": {
                                      "type": "integer",
                                      "description": "The date the scheduled change takes effect."
                                    },
                                    "effective_at_config": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 31,
                                          "description": "The day of the month the scheduled change takes effect."
                                        },
                                        "month": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 12,
                                          "description": "The month the scheduled change takes effect."
                                        },
                                        "year": {
                                          "type": "integer",
                                          "description": "The year the scheduled change takes effect."
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ],
                                      "description": "Configuration to compute the effective date of the scheduled change."
                                    }
                                  },
                                  "required": [
                                    "amount"
                                  ]
                                },
                                "description": "The schedule for the subscription item."
                              },
                              "tax_rate": {
                                "type": "string",
                                "description": "The identifier of the tax rate for the subscription item."
                              },
                              "transfer_behavior": {
                                "type": "string",
                                "enum": [
                                  "automatic",
                                  "owner",
                                  "none"
                                ],
                                "description": "The transfer behavior for the subscription item."
                              },
                              "transfer_destination": {
                                "type": "string",
                                "description": "The identifier of the connected account to transfer funds to."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "charge",
                                  "rent",
                                  "product"
                                ],
                                "description": "The type of the subscription item."
                              },
                              "unit": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the unit associated with the subscription item."
                              }
                            },
                            "required": [
                              "price_data",
                              "type"
                            ]
                          },
                          "minItems": 1,
                          "maxItems": 10,
                          "description": "The items for the subscription. Required when interval is not custom."
                        },
                        "phases": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "integer",
                                "description": "The start date of the phase."
                              },
                              "items": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "description": "The description of the subscription item."
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs to attach to the subscription item."
                                    },
                                    "price": {
                                      "type": "string",
                                      "description": "The identifier of the price to use for the subscription item."
                                    },
                                    "price_data": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "number",
                                          "description": "The amount of the price."
                                        },
                                        "currency": {
                                          "type": "string",
                                          "description": "The currency of the price."
                                        },
                                        "tax_percent": {
                                          "type": "number",
                                          "description": "The tax percentage to apply to the price."
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "currency",
                                        "tax_percent"
                                      ],
                                      "description": "The price data for the subscription item."
                                    },
                                    "proration_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "create_prorations",
                                        "none"
                                      ],
                                      "description": "Whether to create prorations when creating the subscription item."
                                    },
                                    "schedule": {
                                      "type": [
                                        "array",
                                        "null"
                                      ],
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "integer",
                                            "description": "The amount for the scheduled change."
                                          },
                                          "effective_at": {
                                            "type": "integer",
                                            "description": "The date the scheduled change takes effect."
                                          },
                                          "effective_at_config": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 31,
                                                "description": "The day of the month the scheduled change takes effect."
                                              },
                                              "month": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 12,
                                                "description": "The month the scheduled change takes effect."
                                              },
                                              "year": {
                                                "type": "integer",
                                                "description": "The year the scheduled change takes effect."
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ],
                                            "description": "Configuration to compute the effective date of the scheduled change."
                                          }
                                        },
                                        "required": [
                                          "amount"
                                        ]
                                      },
                                      "description": "The schedule for the subscription item."
                                    },
                                    "tax_rate": {
                                      "type": "string",
                                      "description": "The identifier of the tax rate for the subscription item."
                                    },
                                    "transfer_behavior": {
                                      "type": "string",
                                      "enum": [
                                        "automatic",
                                        "owner",
                                        "none"
                                      ],
                                      "description": "The transfer behavior for the subscription item."
                                    },
                                    "transfer_destination": {
                                      "type": "string",
                                      "description": "The identifier of the connected account to transfer funds to."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "charge",
                                        "rent",
                                        "product"
                                      ],
                                      "description": "The type of the subscription item."
                                    },
                                    "unit": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the unit associated with the subscription item."
                                    }
                                  },
                                  "required": [
                                    "price_data",
                                    "type"
                                  ]
                                },
                                "minItems": 1,
                                "maxItems": 10,
                                "description": "The items in the phase."
                              }
                            },
                            "required": [
                              "start_date",
                              "items"
                            ]
                          },
                          "minItems": 1,
                          "description": "The phases of the subscription. Required when interval is custom."
                        },
                        "start_date": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The start date of the subscription."
                        },
                        "start_date_config": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 31,
                              "description": "The day of the month for the start date."
                            },
                            "month": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 12,
                              "description": "The month for the start date."
                            },
                            "year": {
                              "type": "integer",
                              "description": "The year for the start date."
                            }
                          },
                          "required": [
                            "day",
                            "month",
                            "year"
                          ],
                          "description": "Configuration to compute the start date of the subscription."
                        },
                        "interval": {
                          "type": "string",
                          "enum": [
                            "month",
                            "week",
                            "custom",
                            "upfront"
                          ],
                          "description": "The billing interval for the subscription."
                        }
                      },
                      "required": [
                        "collection_method",
                        "interval"
                      ],
                      "description": "The subscription data for the application."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "active_tenancy",
                        "let_only",
                        "renewal",
                        "standard"
                      ],
                      "description": "The type of the application."
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the unit for the application."
                    },
                    "unit_snapshot": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The name of the unit."
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "description": "A snapshot of the unit at the time of the application."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "advance_rent_amount",
                    "application_configuration",
                    "application_mode",
                    "assignee",
                    "building",
                    "building_snapshot",
                    "completed_at",
                    "contract",
                    "contract_address",
                    "contract_options",
                    "contract_template",
                    "current_step",
                    "currency",
                    "deal_assignee",
                    "deposit_amount",
                    "has_owner",
                    "holding_fee_amount",
                    "end_behavior",
                    "end_date",
                    "from_application",
                    "move_in_date",
                    "move_out_date",
                    "open",
                    "owner_options",
                    "partial_payment",
                    "rent_term",
                    "start_date",
                    "status",
                    "subscription_data",
                    "type",
                    "unit",
                    "unit_snapshot"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/applicants/{applicantId}": {
      "get": {
        "operationId": "applications_retrieve-applicant",
        "summary": "Retrieve an applicant",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "The applicantId identifier."
            },
            "required": true,
            "description": "The applicantId identifier.",
            "name": "applicantId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the applicant object if the retrieval succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application.applicant"
                      ]
                    },
                    "application": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the application the applicant belongs to."
                    },
                    "advance_rent": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The advance rent amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the advance rent has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the advance rent was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the advance rent transaction."
                        }
                      },
                      "description": "The advance rent details for the applicant."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the applicant.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The customer associated with the applicant."
                    },
                    "deposit": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The deposit amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the deposit has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the deposit was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the deposit transaction."
                        }
                      },
                      "required": [
                        "amount",
                        "paid",
                        "paid_off_platform",
                        "transaction"
                      ],
                      "description": "The deposit details for the applicant."
                    },
                    "guarantor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor for the applicant."
                    },
                    "guarantor_contract": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor contract for the applicant."
                    },
                    "holding_fee": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The holding fee amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the holding fee has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the holding fee was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the holding fee transaction."
                        }
                      },
                      "description": "The holding fee details for the applicant."
                    },
                    "lead_tenant": {
                      "type": "boolean",
                      "description": "Whether the applicant is the lead tenant."
                    },
                    "pets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "age": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "The age of the pet."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The name of the pet."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "dog",
                              "cat",
                              "small_animal",
                              "bird",
                              "fish",
                              "other"
                            ],
                            "description": "The species of the pet."
                          }
                        },
                        "required": [
                          "age",
                          "name",
                          "type"
                        ]
                      },
                      "description": "The pets of the applicant."
                    },
                    "permitted_occupier": {
                      "type": "boolean",
                      "description": "Whether the applicant is a permitted occupier."
                    },
                    "pre_qualification": {
                      "type": "object",
                      "properties": {
                        "affordability": {
                          "type": "object",
                          "properties": {
                            "company_name": {
                              "type": "string",
                              "description": "The name of the company the applicant works for."
                            },
                            "gross_annual_salary": {
                              "type": "number",
                              "description": "The gross annual salary of the applicant."
                            },
                            "role": {
                              "type": "string",
                              "description": "The role of the applicant."
                            }
                          },
                          "description": "The affordability details for the applicant."
                        },
                        "nationality": {
                          "type": "string",
                          "description": "The nationality of the applicant."
                        }
                      },
                      "description": "The pre-qualification details for the applicant."
                    },
                    "requirements": {
                      "type": "object",
                      "properties": {
                        "guarantor": {
                          "type": "boolean",
                          "description": "Whether the applicant needs a guarantor."
                        }
                      },
                      "required": [
                        "guarantor"
                      ]
                    },
                    "share_of_rent": {
                      "type": "number",
                      "description": "The share of rent for the applicant."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the applicant."
                    },
                    "tos_acceptance": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "date": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The date the terms of service were accepted."
                        },
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The IP address from which the terms of service were accepted."
                        }
                      },
                      "required": [
                        "date",
                        "ip"
                      ],
                      "description": "The terms of service acceptance details for the applicant."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "advance_rent",
                    "currency",
                    "customer",
                    "deposit",
                    "guarantor",
                    "guarantor_contract",
                    "holding_fee",
                    "lead_tenant",
                    "permitted_occupier",
                    "requirements",
                    "share_of_rent",
                    "status",
                    "tos_acceptance"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "applications_update-applicant",
        "summary": "Update an applicant",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "The applicantId identifier."
            },
            "required": true,
            "description": "The applicantId identifier.",
            "name": "applicantId",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consumer_user_link": {
                    "type": "string",
                    "description": "The token for the consumer user link."
                  },
                  "payment_method": {
                    "type": "string",
                    "description": "The identifier of the payment method to set as the default."
                  },
                  "pets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "age": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The age of the pet."
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the pet."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "dog",
                            "cat",
                            "small_animal",
                            "bird",
                            "fish",
                            "other"
                          ],
                          "description": "The species of the pet."
                        }
                      },
                      "required": [
                        "age",
                        "name",
                        "type"
                      ]
                    },
                    "description": "The pets of the applicant."
                  },
                  "pre_qualification": {
                    "type": "object",
                    "properties": {
                      "affordability": {
                        "type": "object",
                        "properties": {
                          "company_name": {
                            "type": "string",
                            "description": "The name of the company the applicant works for."
                          },
                          "gross_annual_salary": {
                            "type": "number",
                            "description": "The gross annual salary of the applicant."
                          },
                          "role": {
                            "type": "string",
                            "description": "The role of the applicant."
                          }
                        },
                        "description": "The affordability details for the applicant."
                      },
                      "nationality": {
                        "type": "string",
                        "description": "The nationality of the applicant."
                      }
                    },
                    "description": "The pre-qualification details for the applicant."
                  },
                  "requirements": {
                    "type": "object",
                    "properties": {
                      "guarantor": {
                        "type": "boolean",
                        "description": "Whether the applicant needs a guarantor."
                      }
                    },
                    "description": "Applicant requirements updates."
                  },
                  "tos_acceptance": {
                    "type": "boolean",
                    "description": "Whether the terms of service have been accepted."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the applicant object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application.applicant"
                      ]
                    },
                    "application": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the application the applicant belongs to."
                    },
                    "advance_rent": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The advance rent amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the advance rent has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the advance rent was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the advance rent transaction."
                        }
                      },
                      "description": "The advance rent details for the applicant."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the applicant.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The customer associated with the applicant."
                    },
                    "deposit": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The deposit amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the deposit has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the deposit was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the deposit transaction."
                        }
                      },
                      "required": [
                        "amount",
                        "paid",
                        "paid_off_platform",
                        "transaction"
                      ],
                      "description": "The deposit details for the applicant."
                    },
                    "guarantor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor for the applicant."
                    },
                    "guarantor_contract": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor contract for the applicant."
                    },
                    "holding_fee": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The holding fee amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the holding fee has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the holding fee was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the holding fee transaction."
                        }
                      },
                      "description": "The holding fee details for the applicant."
                    },
                    "lead_tenant": {
                      "type": "boolean",
                      "description": "Whether the applicant is the lead tenant."
                    },
                    "pets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "age": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "The age of the pet."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The name of the pet."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "dog",
                              "cat",
                              "small_animal",
                              "bird",
                              "fish",
                              "other"
                            ],
                            "description": "The species of the pet."
                          }
                        },
                        "required": [
                          "age",
                          "name",
                          "type"
                        ]
                      },
                      "description": "The pets of the applicant."
                    },
                    "permitted_occupier": {
                      "type": "boolean",
                      "description": "Whether the applicant is a permitted occupier."
                    },
                    "pre_qualification": {
                      "type": "object",
                      "properties": {
                        "affordability": {
                          "type": "object",
                          "properties": {
                            "company_name": {
                              "type": "string",
                              "description": "The name of the company the applicant works for."
                            },
                            "gross_annual_salary": {
                              "type": "number",
                              "description": "The gross annual salary of the applicant."
                            },
                            "role": {
                              "type": "string",
                              "description": "The role of the applicant."
                            }
                          },
                          "description": "The affordability details for the applicant."
                        },
                        "nationality": {
                          "type": "string",
                          "description": "The nationality of the applicant."
                        }
                      },
                      "description": "The pre-qualification details for the applicant."
                    },
                    "requirements": {
                      "type": "object",
                      "properties": {
                        "guarantor": {
                          "type": "boolean",
                          "description": "Whether the applicant needs a guarantor."
                        }
                      },
                      "required": [
                        "guarantor"
                      ]
                    },
                    "share_of_rent": {
                      "type": "number",
                      "description": "The share of rent for the applicant."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the applicant."
                    },
                    "tos_acceptance": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "date": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The date the terms of service were accepted."
                        },
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The IP address from which the terms of service were accepted."
                        }
                      },
                      "required": [
                        "date",
                        "ip"
                      ],
                      "description": "The terms of service acceptance details for the applicant."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "advance_rent",
                    "currency",
                    "customer",
                    "deposit",
                    "guarantor",
                    "guarantor_contract",
                    "holding_fee",
                    "lead_tenant",
                    "permitted_occupier",
                    "requirements",
                    "share_of_rent",
                    "status",
                    "tos_acceptance"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/applicants/{applicantId}/mark_paid": {
      "post": {
        "operationId": "applications_mark-applicant-paid",
        "summary": "Mark an applicant as paid",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "The applicantId identifier."
            },
            "required": true,
            "description": "The applicantId identifier.",
            "name": "applicantId",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the applicant object if the mark paid succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application.applicant"
                      ]
                    },
                    "application": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The identifier of the application the applicant belongs to."
                    },
                    "advance_rent": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The advance rent amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the advance rent has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the advance rent was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the advance rent transaction."
                        }
                      },
                      "description": "The advance rent details for the applicant."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "The currency for the applicant.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The customer associated with the applicant."
                    },
                    "deposit": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The deposit amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the deposit has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the deposit was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the deposit transaction."
                        }
                      },
                      "required": [
                        "amount",
                        "paid",
                        "paid_off_platform",
                        "transaction"
                      ],
                      "description": "The deposit details for the applicant."
                    },
                    "guarantor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor for the applicant."
                    },
                    "guarantor_contract": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The identifier of the guarantor contract for the applicant."
                    },
                    "holding_fee": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "number",
                          "description": "The holding fee amount for the applicant."
                        },
                        "paid": {
                          "type": "boolean",
                          "description": "Whether the holding fee has been paid."
                        },
                        "paid_off_platform": {
                          "type": "boolean",
                          "description": "Whether the holding fee was paid off platform."
                        },
                        "transaction": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The identifier of the holding fee transaction."
                        }
                      },
                      "description": "The holding fee details for the applicant."
                    },
                    "lead_tenant": {
                      "type": "boolean",
                      "description": "Whether the applicant is the lead tenant."
                    },
                    "pets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "age": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "The age of the pet."
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The name of the pet."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "dog",
                              "cat",
                              "small_animal",
                              "bird",
                              "fish",
                              "other"
                            ],
                            "description": "The species of the pet."
                          }
                        },
                        "required": [
                          "age",
                          "name",
                          "type"
                        ]
                      },
                      "description": "The pets of the applicant."
                    },
                    "permitted_occupier": {
                      "type": "boolean",
                      "description": "Whether the applicant is a permitted occupier."
                    },
                    "pre_qualification": {
                      "type": "object",
                      "properties": {
                        "affordability": {
                          "type": "object",
                          "properties": {
                            "company_name": {
                              "type": "string",
                              "description": "The name of the company the applicant works for."
                            },
                            "gross_annual_salary": {
                              "type": "number",
                              "description": "The gross annual salary of the applicant."
                            },
                            "role": {
                              "type": "string",
                              "description": "The role of the applicant."
                            }
                          },
                          "description": "The affordability details for the applicant."
                        },
                        "nationality": {
                          "type": "string",
                          "description": "The nationality of the applicant."
                        }
                      },
                      "description": "The pre-qualification details for the applicant."
                    },
                    "requirements": {
                      "type": "object",
                      "properties": {
                        "guarantor": {
                          "type": "boolean",
                          "description": "Whether the applicant needs a guarantor."
                        }
                      },
                      "required": [
                        "guarantor"
                      ]
                    },
                    "share_of_rent": {
                      "type": "number",
                      "description": "The share of rent for the applicant."
                    },
                    "status": {
                      "type": "string",
                      "description": "The status of the applicant."
                    },
                    "tos_acceptance": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "date": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The date the terms of service were accepted."
                        },
                        "ip": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The IP address from which the terms of service were accepted."
                        }
                      },
                      "required": [
                        "date",
                        "ip"
                      ],
                      "description": "The terms of service acceptance details for the applicant."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "advance_rent",
                    "currency",
                    "customer",
                    "deposit",
                    "guarantor",
                    "guarantor_contract",
                    "holding_fee",
                    "lead_tenant",
                    "permitted_occupier",
                    "requirements",
                    "share_of_rent",
                    "status",
                    "tos_acceptance"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/applications/{id}/applicants": {
      "get": {
        "operationId": "applications_list-applicants",
        "summary": "List all applicants for an application",
        "description": "",
        "tags": [
          "Applications"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of applicants.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "application.applicant"
                            ]
                          },
                          "application": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The identifier of the application the applicant belongs to."
                          },
                          "advance_rent": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "description": "The advance rent amount for the applicant."
                              },
                              "paid": {
                                "type": "boolean",
                                "description": "Whether the advance rent has been paid."
                              },
                              "paid_off_platform": {
                                "type": "boolean",
                                "description": "Whether the advance rent was paid off platform."
                              },
                              "transaction": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the advance rent transaction."
                              }
                            },
                            "description": "The advance rent details for the applicant."
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "The currency for the applicant.",
                            "example": "gbp"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ],
                            "description": "The customer associated with the applicant."
                          },
                          "deposit": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "description": "The deposit amount for the applicant."
                              },
                              "paid": {
                                "type": "boolean",
                                "description": "Whether the deposit has been paid."
                              },
                              "paid_off_platform": {
                                "type": "boolean",
                                "description": "Whether the deposit was paid off platform."
                              },
                              "transaction": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the deposit transaction."
                              }
                            },
                            "required": [
                              "amount",
                              "paid",
                              "paid_off_platform",
                              "transaction"
                            ],
                            "description": "The deposit details for the applicant."
                          },
                          "guarantor": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The identifier of the guarantor for the applicant."
                          },
                          "guarantor_contract": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The identifier of the guarantor contract for the applicant."
                          },
                          "holding_fee": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "description": "The holding fee amount for the applicant."
                              },
                              "paid": {
                                "type": "boolean",
                                "description": "Whether the holding fee has been paid."
                              },
                              "paid_off_platform": {
                                "type": "boolean",
                                "description": "Whether the holding fee was paid off platform."
                              },
                              "transaction": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the holding fee transaction."
                              }
                            },
                            "description": "The holding fee details for the applicant."
                          },
                          "lead_tenant": {
                            "type": "boolean",
                            "description": "Whether the applicant is the lead tenant."
                          },
                          "pets": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "age": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "The age of the pet."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The name of the pet."
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "dog",
                                    "cat",
                                    "small_animal",
                                    "bird",
                                    "fish",
                                    "other"
                                  ],
                                  "description": "The species of the pet."
                                }
                              },
                              "required": [
                                "age",
                                "name",
                                "type"
                              ]
                            },
                            "description": "The pets of the applicant."
                          },
                          "permitted_occupier": {
                            "type": "boolean",
                            "description": "Whether the applicant is a permitted occupier."
                          },
                          "pre_qualification": {
                            "type": "object",
                            "properties": {
                              "affordability": {
                                "type": "object",
                                "properties": {
                                  "company_name": {
                                    "type": "string",
                                    "description": "The name of the company the applicant works for."
                                  },
                                  "gross_annual_salary": {
                                    "type": "number",
                                    "description": "The gross annual salary of the applicant."
                                  },
                                  "role": {
                                    "type": "string",
                                    "description": "The role of the applicant."
                                  }
                                },
                                "description": "The affordability details for the applicant."
                              },
                              "nationality": {
                                "type": "string",
                                "description": "The nationality of the applicant."
                              }
                            },
                            "description": "The pre-qualification details for the applicant."
                          },
                          "requirements": {
                            "type": "object",
                            "properties": {
                              "guarantor": {
                                "type": "boolean",
                                "description": "Whether the applicant needs a guarantor."
                              }
                            },
                            "required": [
                              "guarantor"
                            ]
                          },
                          "share_of_rent": {
                            "type": "number",
                            "description": "The share of rent for the applicant."
                          },
                          "status": {
                            "type": "string",
                            "description": "The status of the applicant."
                          },
                          "tos_acceptance": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "date": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "The date the terms of service were accepted."
                              },
                              "ip": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The IP address from which the terms of service were accepted."
                              }
                            },
                            "required": [
                              "date",
                              "ip"
                            ],
                            "description": "The terms of service acceptance details for the applicant."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "application",
                          "advance_rent",
                          "currency",
                          "customer",
                          "deposit",
                          "guarantor",
                          "guarantor_contract",
                          "holding_fee",
                          "lead_tenant",
                          "permitted_occupier",
                          "requirements",
                          "share_of_rent",
                          "status",
                          "tos_acceptance"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/application_configurations": {
      "post": {
        "operationId": "application_configurations_create",
        "summary": "Create an application configuration",
        "description": "Create an application configuration",
        "tags": [
          "Application Configurations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the application configuration."
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        }
                      ]
                    },
                    "minItems": 1,
                    "description": "The steps of the application configuration."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether the application configuration is active."
                  }
                },
                "required": [
                  "name",
                  "steps"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the application configuration object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application_configuration"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the application configuration is active."
                    },
                    "initial_step": {
                      "type": "string",
                      "description": "The identifier of the initial step in the configuration."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the application configuration."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "advance_rent"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Advance rent",
                            "description": "The advance rent step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "completion"
                                ],
                                "description": "The type of the step."
                              },
                              "completion": {
                                "type": "object",
                                "properties": {
                                  "behavior": {
                                    "type": "string",
                                    "enum": [
                                      "automatic",
                                      "manual"
                                    ],
                                    "description": "The completion behavior for the step."
                                  }
                                },
                                "required": [
                                  "behavior"
                                ],
                                "description": "The completion settings for the step."
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "completion"
                            ],
                            "title": "Completion",
                            "description": "The completion step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "contract"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Contract",
                            "description": "The contract step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "deposit"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Deposit",
                            "description": "The deposit step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "holding_fee"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Holding fee",
                            "description": "The holding fee step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "partial_payment"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Partial payment",
                            "description": "The partial payment step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Payment method",
                            "description": "The payment method step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "pre_qualification"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Pre-qualification",
                            "description": "The pre-qualification step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "referencing"
                                ]
                              },
                              "referencing": {
                                "type": "object",
                                "properties": {
                                  "automatic_reference": {
                                    "type": "object",
                                    "properties": {
                                      "enabled": {
                                        "type": "boolean",
                                        "description": "Whether the automatic reference is enabled."
                                      },
                                      "provider": {
                                        "type": "string",
                                        "enum": [
                                          "advance_rent",
                                          "canopy",
                                          "homelet",
                                          "let_alliance"
                                        ],
                                        "description": "The provider to use with automatic referencing."
                                      }
                                    },
                                    "required": [
                                      "enabled",
                                      "provider"
                                    ],
                                    "description": "The automatic reference settings."
                                  }
                                },
                                "description": "The referencing settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Referencing",
                            "description": "The referencing step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "verification_session"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Verification session",
                            "description": "The verification session step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "waitpoint"
                                ]
                              },
                              "waitpoint": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The name of the waitpoint."
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "description": "The waitpoint settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Waitpoint",
                            "description": "The waitpoint step."
                          }
                        ]
                      },
                      "description": "The steps of the application configuration."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "initial_step",
                    "name",
                    "steps"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "application_configurations_list",
        "summary": "List all application configurations",
        "description": "List all application configurations",
        "tags": [
          "Application Configurations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of application configurations.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "application_configuration"
                            ]
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Whether the application configuration is active."
                          },
                          "initial_step": {
                            "type": "string",
                            "description": "The identifier of the initial step in the configuration."
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the application configuration."
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                }
                              ]
                            },
                            "description": "The steps of the application configuration."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "active",
                          "initial_step",
                          "name",
                          "steps"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/application_configurations/{id}": {
      "get": {
        "operationId": "application_configurations_retrieve",
        "summary": "Retrieve an application configuration",
        "description": "Retrieve an application configuration",
        "tags": [
          "Application Configurations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an application configuration object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application_configuration"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the application configuration is active."
                    },
                    "initial_step": {
                      "type": "string",
                      "description": "The identifier of the initial step in the configuration."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the application configuration."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "advance_rent"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Advance rent",
                            "description": "The advance rent step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "completion"
                                ],
                                "description": "The type of the step."
                              },
                              "completion": {
                                "type": "object",
                                "properties": {
                                  "behavior": {
                                    "type": "string",
                                    "enum": [
                                      "automatic",
                                      "manual"
                                    ],
                                    "description": "The completion behavior for the step."
                                  }
                                },
                                "required": [
                                  "behavior"
                                ],
                                "description": "The completion settings for the step."
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "completion"
                            ],
                            "title": "Completion",
                            "description": "The completion step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "contract"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Contract",
                            "description": "The contract step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "deposit"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Deposit",
                            "description": "The deposit step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "holding_fee"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Holding fee",
                            "description": "The holding fee step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "partial_payment"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Partial payment",
                            "description": "The partial payment step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Payment method",
                            "description": "The payment method step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "pre_qualification"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Pre-qualification",
                            "description": "The pre-qualification step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "referencing"
                                ]
                              },
                              "referencing": {
                                "type": "object",
                                "properties": {
                                  "automatic_reference": {
                                    "type": "object",
                                    "properties": {
                                      "enabled": {
                                        "type": "boolean",
                                        "description": "Whether the automatic reference is enabled."
                                      },
                                      "provider": {
                                        "type": "string",
                                        "enum": [
                                          "advance_rent",
                                          "canopy",
                                          "homelet",
                                          "let_alliance"
                                        ],
                                        "description": "The provider to use with automatic referencing."
                                      }
                                    },
                                    "required": [
                                      "enabled",
                                      "provider"
                                    ],
                                    "description": "The automatic reference settings."
                                  }
                                },
                                "description": "The referencing settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Referencing",
                            "description": "The referencing step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "verification_session"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Verification session",
                            "description": "The verification session step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "waitpoint"
                                ]
                              },
                              "waitpoint": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The name of the waitpoint."
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "description": "The waitpoint settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Waitpoint",
                            "description": "The waitpoint step."
                          }
                        ]
                      },
                      "description": "The steps of the application configuration."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "initial_step",
                    "name",
                    "steps"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "application_configurations_update",
        "summary": "Update an application configuration",
        "description": "Update an application configuration",
        "tags": [
          "Application Configurations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Whether the application configuration is active."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the application configuration."
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Advance rent",
                          "description": "The advance rent step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "completion"
                              ],
                              "description": "The type of the step."
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "behavior": {
                                  "type": "string",
                                  "enum": [
                                    "automatic",
                                    "manual"
                                  ],
                                  "description": "The completion behavior for the step."
                                }
                              },
                              "required": [
                                "behavior"
                              ],
                              "description": "The completion settings for the step."
                            }
                          },
                          "required": [
                            "id",
                            "type",
                            "completion"
                          ],
                          "title": "Completion",
                          "description": "The completion step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "contract"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Contract",
                          "description": "The contract step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "deposit"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Deposit",
                          "description": "The deposit step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "holding_fee"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Holding fee",
                          "description": "The holding fee step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "partial_payment"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Partial payment",
                          "description": "The partial payment step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "payment_method"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Payment method",
                          "description": "The payment method step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "pre_qualification"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Pre-qualification",
                          "description": "The pre-qualification step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "referencing"
                              ]
                            },
                            "referencing": {
                              "type": "object",
                              "properties": {
                                "automatic_reference": {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean",
                                      "description": "Whether the automatic reference is enabled."
                                    },
                                    "provider": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent",
                                        "canopy",
                                        "homelet",
                                        "let_alliance"
                                      ],
                                      "description": "The provider to use with automatic referencing."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "provider"
                                  ],
                                  "description": "The automatic reference settings."
                                }
                              },
                              "description": "The referencing settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Referencing",
                          "description": "The referencing step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "verification_session"
                              ],
                              "description": "The type of the step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Verification session",
                          "description": "The verification session step."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "The unique identifier of the step."
                            },
                            "next_step": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the next step in the configuration."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "waitpoint"
                              ]
                            },
                            "waitpoint": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the waitpoint."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "The waitpoint settings for the application configuration step."
                            }
                          },
                          "required": [
                            "id",
                            "next_step",
                            "type"
                          ],
                          "title": "Waitpoint",
                          "description": "The waitpoint step."
                        }
                      ]
                    },
                    "minItems": 1,
                    "description": "The steps of the application configuration."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the application configuration object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application_configuration"
                      ]
                    },
                    "active": {
                      "type": "boolean",
                      "description": "Whether the application configuration is active."
                    },
                    "initial_step": {
                      "type": "string",
                      "description": "The identifier of the initial step in the configuration."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the application configuration."
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "advance_rent"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Advance rent",
                            "description": "The advance rent step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "completion"
                                ],
                                "description": "The type of the step."
                              },
                              "completion": {
                                "type": "object",
                                "properties": {
                                  "behavior": {
                                    "type": "string",
                                    "enum": [
                                      "automatic",
                                      "manual"
                                    ],
                                    "description": "The completion behavior for the step."
                                  }
                                },
                                "required": [
                                  "behavior"
                                ],
                                "description": "The completion settings for the step."
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "completion"
                            ],
                            "title": "Completion",
                            "description": "The completion step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "contract"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Contract",
                            "description": "The contract step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "deposit"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Deposit",
                            "description": "The deposit step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "holding_fee"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Holding fee",
                            "description": "The holding fee step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "partial_payment"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Partial payment",
                            "description": "The partial payment step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Payment method",
                            "description": "The payment method step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "pre_qualification"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Pre-qualification",
                            "description": "The pre-qualification step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "referencing"
                                ]
                              },
                              "referencing": {
                                "type": "object",
                                "properties": {
                                  "automatic_reference": {
                                    "type": "object",
                                    "properties": {
                                      "enabled": {
                                        "type": "boolean",
                                        "description": "Whether the automatic reference is enabled."
                                      },
                                      "provider": {
                                        "type": "string",
                                        "enum": [
                                          "advance_rent",
                                          "canopy",
                                          "homelet",
                                          "let_alliance"
                                        ],
                                        "description": "The provider to use with automatic referencing."
                                      }
                                    },
                                    "required": [
                                      "enabled",
                                      "provider"
                                    ],
                                    "description": "The automatic reference settings."
                                  }
                                },
                                "description": "The referencing settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Referencing",
                            "description": "The referencing step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "verification_session"
                                ],
                                "description": "The type of the step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Verification session",
                            "description": "The verification session step."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "The unique identifier of the step."
                              },
                              "next_step": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The identifier of the next step in the configuration."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "waitpoint"
                                ]
                              },
                              "waitpoint": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The name of the waitpoint."
                                  }
                                },
                                "required": [
                                  "name"
                                ],
                                "description": "The waitpoint settings for the application configuration step."
                              }
                            },
                            "required": [
                              "id",
                              "next_step",
                              "type"
                            ],
                            "title": "Waitpoint",
                            "description": "The waitpoint step."
                          }
                        ]
                      },
                      "description": "The steps of the application configuration."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "active",
                    "initial_step",
                    "name",
                    "steps"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/application_sessions": {
      "post": {
        "operationId": "application_sessions_create",
        "summary": "Create an application session",
        "description": "Creates a new application session for the specified application.",
        "tags": [
          "Application Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "application_status": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the application status (applicant) to create the session for."
                  },
                  "send_email": {
                    "type": "boolean",
                    "description": "Whether to send an email to the applicant with the session link."
                  }
                },
                "required": [
                  "application_status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the application session object if the creation succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "application_session"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the application for the session."
                    },
                    "application_status": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the applicant for the session."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ],
                      "description": "The identifier of the customer for the session."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "classic",
                        "configuration"
                      ],
                      "description": "The mode of the application session."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "complete",
                        "canceled",
                        "active",
                        "expired"
                      ],
                      "description": "The status of the application session."
                    },
                    "url": {
                      "type": "string",
                      "description": "The URL of the application session hosted page."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "application_status",
                    "customer",
                    "mode",
                    "status",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/references": {
      "post": {
        "operationId": "references_create",
        "summary": "Create a reference",
        "description": "",
        "tags": [
          "References"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "application": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the application for the reference. Required is type is customer."
                  },
                  "automatic_reference": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean",
                        "description": "Enabled automatic reference will automatically reference the customer with a provider."
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "advance_rent",
                          "canopy",
                          "homelet",
                          "let_alliance"
                        ],
                        "description": "The provider to use with automatic referencing."
                      }
                    },
                    "required": [
                      "enabled"
                    ],
                    "description": "Automatic reference settings for this reference."
                  },
                  "customer": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$",
                    "description": "The identifier of the customer to reference."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "customer"
                    ],
                    "description": "The reference type."
                  }
                },
                "required": [
                  "application",
                  "customer",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the reference object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "reference"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application for the reference."
                    },
                    "automatic_reference": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether the automatic reference is enabled."
                        },
                        "last_error": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The last error for the automatic reference."
                        },
                        "outcome": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider outcome for the reference."
                        },
                        "provider_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "advance_rent": {
                              "type": "object",
                              "properties": {
                                "affordability": {
                                  "type": "object",
                                  "properties": {
                                    "percentage": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "percentage",
                                    "status"
                                  ]
                                },
                                "credit_score": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "notes": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "created": {
                                        "type": "number"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "created",
                                      "message"
                                    ]
                                  }
                                },
                                "progress": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "sanctions_passed": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "credit_score",
                                "notes",
                                "progress",
                                "sanctions_passed"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ]
                            }
                          },
                          "required": [
                            "advance_rent",
                            "type"
                          ],
                          "description": "The provider specific data for the reference."
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "advance_rent",
                            "canopy",
                            "homelet",
                            "let_alliance",
                            null
                          ],
                          "description": "The provider to use with automatic referencing."
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider status for the reference."
                        }
                      },
                      "required": [
                        "enabled",
                        "last_error",
                        "outcome",
                        "provider_data",
                        "provider",
                        "status"
                      ],
                      "description": "Automatic reference settings for this reference."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The timestamp of the reference completion."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The customer for the reference."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the reference."
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "accept",
                        "consider",
                        "high_risk",
                        null
                      ],
                      "description": "The outcome of the reference."
                    },
                    "reference_pdf": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The file of the completed reference PDF."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "complete",
                        "canceled"
                      ],
                      "description": "The status of the reference."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ],
                      "description": "The reference type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "automatic_reference",
                    "completed_at",
                    "customer",
                    "outcome",
                    "reference_pdf",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "references_list",
        "summary": "List all references",
        "description": "",
        "tags": [
          "References"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of references.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "reference"
                            ]
                          },
                          "application": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The identifier of the application for the reference."
                          },
                          "automatic_reference": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "description": "Whether the automatic reference is enabled."
                              },
                              "last_error": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The last error for the automatic reference."
                              },
                              "outcome": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The provider outcome for the reference."
                              },
                              "provider_data": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "advance_rent": {
                                    "type": "object",
                                    "properties": {
                                      "affordability": {
                                        "type": "object",
                                        "properties": {
                                          "percentage": {
                                            "type": [
                                              "number",
                                              "null"
                                            ]
                                          },
                                          "status": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "percentage",
                                          "status"
                                        ]
                                      },
                                      "credit_score": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "notes": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "created": {
                                              "type": "number"
                                            },
                                            "message": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "created",
                                            "message"
                                          ]
                                        }
                                      },
                                      "progress": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "sanctions_passed": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "affordability",
                                      "credit_score",
                                      "notes",
                                      "progress",
                                      "sanctions_passed"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "advance_rent"
                                    ]
                                  }
                                },
                                "required": [
                                  "advance_rent",
                                  "type"
                                ],
                                "description": "The provider specific data for the reference."
                              },
                              "provider": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "advance_rent",
                                  "canopy",
                                  "homelet",
                                  "let_alliance",
                                  null
                                ],
                                "description": "The provider to use with automatic referencing."
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The provider status for the reference."
                              }
                            },
                            "required": [
                              "enabled",
                              "last_error",
                              "outcome",
                              "provider_data",
                              "provider",
                              "status"
                            ],
                            "description": "Automatic reference settings for this reference."
                          },
                          "completed_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The timestamp of the reference completion."
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The customer for the reference."
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "The metadata for the reference."
                          },
                          "outcome": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "accept",
                              "consider",
                              "high_risk",
                              null
                            ],
                            "description": "The outcome of the reference."
                          },
                          "reference_pdf": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "pattern": "^[a-zA-Z0-9_]+$",
                            "description": "The file of the completed reference PDF."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "processing",
                              "complete",
                              "canceled"
                            ],
                            "description": "The status of the reference."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "customer"
                            ],
                            "description": "The reference type."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "application",
                          "automatic_reference",
                          "completed_at",
                          "customer",
                          "outcome",
                          "reference_pdf",
                          "status",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/references/{id}": {
      "get": {
        "operationId": "references_retrieve",
        "summary": "Retrieve a reference",
        "description": "",
        "tags": [
          "References"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a reference object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "reference"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application for the reference."
                    },
                    "automatic_reference": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether the automatic reference is enabled."
                        },
                        "last_error": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The last error for the automatic reference."
                        },
                        "outcome": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider outcome for the reference."
                        },
                        "provider_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "advance_rent": {
                              "type": "object",
                              "properties": {
                                "affordability": {
                                  "type": "object",
                                  "properties": {
                                    "percentage": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "percentage",
                                    "status"
                                  ]
                                },
                                "credit_score": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "notes": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "created": {
                                        "type": "number"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "created",
                                      "message"
                                    ]
                                  }
                                },
                                "progress": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "sanctions_passed": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "credit_score",
                                "notes",
                                "progress",
                                "sanctions_passed"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ]
                            }
                          },
                          "required": [
                            "advance_rent",
                            "type"
                          ],
                          "description": "The provider specific data for the reference."
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "advance_rent",
                            "canopy",
                            "homelet",
                            "let_alliance",
                            null
                          ],
                          "description": "The provider to use with automatic referencing."
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider status for the reference."
                        }
                      },
                      "required": [
                        "enabled",
                        "last_error",
                        "outcome",
                        "provider_data",
                        "provider",
                        "status"
                      ],
                      "description": "Automatic reference settings for this reference."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The timestamp of the reference completion."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The customer for the reference."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the reference."
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "accept",
                        "consider",
                        "high_risk",
                        null
                      ],
                      "description": "The outcome of the reference."
                    },
                    "reference_pdf": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The file of the completed reference PDF."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "complete",
                        "canceled"
                      ],
                      "description": "The status of the reference."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ],
                      "description": "The reference type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "automatic_reference",
                    "completed_at",
                    "customer",
                    "outcome",
                    "reference_pdf",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "references_update",
        "summary": "Update a reference",
        "description": "",
        "tags": [
          "References"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "accept",
                      "consider",
                      "high_risk"
                    ],
                    "description": "The outcome of the reference."
                  },
                  "reference_pdf": {
                    "type": "string",
                    "description": "The file of the completed reference PDF."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "processing"
                    ],
                    "description": "If the reference is off-platform you can update the status to processing."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the reference object if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "reference"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application for the reference."
                    },
                    "automatic_reference": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether the automatic reference is enabled."
                        },
                        "last_error": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The last error for the automatic reference."
                        },
                        "outcome": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider outcome for the reference."
                        },
                        "provider_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "advance_rent": {
                              "type": "object",
                              "properties": {
                                "affordability": {
                                  "type": "object",
                                  "properties": {
                                    "percentage": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "percentage",
                                    "status"
                                  ]
                                },
                                "credit_score": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "notes": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "created": {
                                        "type": "number"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "created",
                                      "message"
                                    ]
                                  }
                                },
                                "progress": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "sanctions_passed": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "credit_score",
                                "notes",
                                "progress",
                                "sanctions_passed"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ]
                            }
                          },
                          "required": [
                            "advance_rent",
                            "type"
                          ],
                          "description": "The provider specific data for the reference."
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "advance_rent",
                            "canopy",
                            "homelet",
                            "let_alliance",
                            null
                          ],
                          "description": "The provider to use with automatic referencing."
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider status for the reference."
                        }
                      },
                      "required": [
                        "enabled",
                        "last_error",
                        "outcome",
                        "provider_data",
                        "provider",
                        "status"
                      ],
                      "description": "Automatic reference settings for this reference."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The timestamp of the reference completion."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The customer for the reference."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the reference."
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "accept",
                        "consider",
                        "high_risk",
                        null
                      ],
                      "description": "The outcome of the reference."
                    },
                    "reference_pdf": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The file of the completed reference PDF."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "complete",
                        "canceled"
                      ],
                      "description": "The status of the reference."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ],
                      "description": "The reference type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "automatic_reference",
                    "completed_at",
                    "customer",
                    "outcome",
                    "reference_pdf",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/references/{id}/cancel": {
      "post": {
        "operationId": "references_cancel",
        "summary": "Cancel a reference",
        "description": "",
        "tags": [
          "References"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the reference object if the cancel succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "reference"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The identifier of the application for the reference."
                    },
                    "automatic_reference": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "description": "Whether the automatic reference is enabled."
                        },
                        "last_error": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The last error for the automatic reference."
                        },
                        "outcome": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider outcome for the reference."
                        },
                        "provider_data": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "advance_rent": {
                              "type": "object",
                              "properties": {
                                "affordability": {
                                  "type": "object",
                                  "properties": {
                                    "percentage": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "percentage",
                                    "status"
                                  ]
                                },
                                "credit_score": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "notes": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "created": {
                                        "type": "number"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "created",
                                      "message"
                                    ]
                                  }
                                },
                                "progress": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "sanctions_passed": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "affordability",
                                "credit_score",
                                "notes",
                                "progress",
                                "sanctions_passed"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "advance_rent"
                              ]
                            }
                          },
                          "required": [
                            "advance_rent",
                            "type"
                          ],
                          "description": "The provider specific data for the reference."
                        },
                        "provider": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "advance_rent",
                            "canopy",
                            "homelet",
                            "let_alliance",
                            null
                          ],
                          "description": "The provider to use with automatic referencing."
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The provider status for the reference."
                        }
                      },
                      "required": [
                        "enabled",
                        "last_error",
                        "outcome",
                        "provider_data",
                        "provider",
                        "status"
                      ],
                      "description": "Automatic reference settings for this reference."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The timestamp of the reference completion."
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The customer for the reference."
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "The metadata for the reference."
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "accept",
                        "consider",
                        "high_risk",
                        null
                      ],
                      "description": "The outcome of the reference."
                    },
                    "reference_pdf": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[a-zA-Z0-9_]+$",
                      "description": "The file of the completed reference PDF."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "complete",
                        "canceled"
                      ],
                      "description": "The status of the reference."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "customer"
                      ],
                      "description": "The reference type."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "automatic_reference",
                    "completed_at",
                    "customer",
                    "outcome",
                    "reference_pdf",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/renewal_intents": {
      "post": {
        "operationId": "renewal_intents_create",
        "summary": "Create a renewal intent",
        "description": "Creates a new renewal intent. Pass type \"rent_increase\" to create a rent review intent. Rent review intents can be created ahead of time and include a due_at date that determines when notice can be served.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "source_application": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "no_renewal",
                      "renewal",
                      "rent_increase"
                    ]
                  }
                },
                "required": [
                  "source_application"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created renewal intent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "renewal_intents_list",
        "summary": "List all renewal intents",
        "description": "Returns a list of renewal intents. Supports filtering by status, type, assignee, and unit. Renewal intents are returned sorted by creation date, with the most recent first.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of renewal intents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "renewal_intent"
                            ]
                          },
                          "application": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "application"
                                    ]
                                  },
                                  "advance_rent_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The advance rent amount for the application."
                                  },
                                  "applicants": {
                                    "type": "object",
                                    "properties": {
                                      "count": {
                                        "type": "number",
                                        "description": "Total number of items in the list.",
                                        "example": 1
                                      },
                                      "has_more": {
                                        "type": "boolean",
                                        "description": "Whether more items are available.",
                                        "example": false
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "list"
                                        ]
                                      },
                                      "data": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "description": "Unique identifier for the object."
                                            },
                                            "created": {
                                              "type": "number",
                                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                            },
                                            "account": {
                                              "type": "string",
                                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                            },
                                            "deleted": {
                                              "type": "boolean",
                                              "default": false,
                                              "description": "Only returned if the object has been deleted."
                                            },
                                            "object": {
                                              "type": "string",
                                              "enum": [
                                                "application.applicant"
                                              ]
                                            },
                                            "application": {
                                              "type": "string",
                                              "pattern": "^[a-zA-Z0-9_]+$",
                                              "description": "The identifier of the application the applicant belongs to."
                                            },
                                            "advance_rent": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The advance rent amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the advance rent has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the advance rent was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the advance rent transaction."
                                                }
                                              },
                                              "description": "The advance rent details for the applicant."
                                            },
                                            "currency": {
                                              "type": "string",
                                              "enum": [
                                                "gbp",
                                                "usd",
                                                "eur",
                                                "sek"
                                              ],
                                              "description": "The currency for the applicant.",
                                              "example": "gbp"
                                            },
                                            "customer": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": {}
                                                }
                                              ],
                                              "description": "The customer associated with the applicant."
                                            },
                                            "deposit": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The deposit amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the deposit has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the deposit was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the deposit transaction."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "paid",
                                                "paid_off_platform",
                                                "transaction"
                                              ],
                                              "description": "The deposit details for the applicant."
                                            },
                                            "guarantor": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the guarantor for the applicant."
                                            },
                                            "guarantor_contract": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the guarantor contract for the applicant."
                                            },
                                            "holding_fee": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The holding fee amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the holding fee has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the holding fee was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the holding fee transaction."
                                                }
                                              },
                                              "description": "The holding fee details for the applicant."
                                            },
                                            "lead_tenant": {
                                              "type": "boolean",
                                              "description": "Whether the applicant is the lead tenant."
                                            },
                                            "pets": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "age": {
                                                    "type": [
                                                      "number",
                                                      "null"
                                                    ],
                                                    "description": "The age of the pet."
                                                  },
                                                  "name": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The name of the pet."
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "enum": [
                                                      "dog",
                                                      "cat",
                                                      "small_animal",
                                                      "bird",
                                                      "fish",
                                                      "other"
                                                    ],
                                                    "description": "The species of the pet."
                                                  }
                                                },
                                                "required": [
                                                  "age",
                                                  "name",
                                                  "type"
                                                ]
                                              },
                                              "description": "The pets of the applicant."
                                            },
                                            "permitted_occupier": {
                                              "type": "boolean",
                                              "description": "Whether the applicant is a permitted occupier."
                                            },
                                            "pre_qualification": {
                                              "type": "object",
                                              "properties": {
                                                "affordability": {
                                                  "type": "object",
                                                  "properties": {
                                                    "company_name": {
                                                      "type": "string",
                                                      "description": "The name of the company the applicant works for."
                                                    },
                                                    "gross_annual_salary": {
                                                      "type": "number",
                                                      "description": "The gross annual salary of the applicant."
                                                    },
                                                    "role": {
                                                      "type": "string",
                                                      "description": "The role of the applicant."
                                                    }
                                                  },
                                                  "description": "The affordability details for the applicant."
                                                },
                                                "nationality": {
                                                  "type": "string",
                                                  "description": "The nationality of the applicant."
                                                }
                                              },
                                              "description": "The pre-qualification details for the applicant."
                                            },
                                            "requirements": {
                                              "type": "object",
                                              "properties": {
                                                "guarantor": {
                                                  "type": "boolean",
                                                  "description": "Whether the applicant needs a guarantor."
                                                }
                                              },
                                              "required": [
                                                "guarantor"
                                              ]
                                            },
                                            "share_of_rent": {
                                              "type": "number",
                                              "description": "The share of rent for the applicant."
                                            },
                                            "status": {
                                              "type": "string",
                                              "description": "The status of the applicant."
                                            },
                                            "tos_acceptance": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "properties": {
                                                "date": {
                                                  "type": [
                                                    "number",
                                                    "null"
                                                  ],
                                                  "description": "The date the terms of service were accepted."
                                                },
                                                "ip": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The IP address from which the terms of service were accepted."
                                                }
                                              },
                                              "required": [
                                                "date",
                                                "ip"
                                              ],
                                              "description": "The terms of service acceptance details for the applicant."
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "created",
                                            "object",
                                            "application",
                                            "advance_rent",
                                            "currency",
                                            "customer",
                                            "deposit",
                                            "guarantor",
                                            "guarantor_contract",
                                            "holding_fee",
                                            "lead_tenant",
                                            "permitted_occupier",
                                            "requirements",
                                            "share_of_rent",
                                            "status",
                                            "tos_acceptance"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "count",
                                      "has_more",
                                      "object",
                                      "data"
                                    ],
                                    "description": "The applicants for the application."
                                  },
                                  "application_configuration": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the application configuration."
                                  },
                                  "application_mode": {
                                    "type": "string",
                                    "enum": [
                                      "classic",
                                      "configuration"
                                    ],
                                    "description": "The mode of the application."
                                  },
                                  "assignee": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^[a-zA-Z0-9_]+$",
                                    "description": "The identifier of the assignee for the application."
                                  },
                                  "building": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "description": "The identifier of the building for the application."
                                  },
                                  "building_snapshot": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "description": "The name of the building."
                                      },
                                      "single_unit": {
                                        "type": "boolean",
                                        "description": "Whether the building has a single unit."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "single_unit"
                                    ],
                                    "description": "A snapshot of the building at the time of the application."
                                  },
                                  "completed_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The date and time the application was completed."
                                  },
                                  "contract": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the contract for the application."
                                  },
                                  "contract_address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The address of the contract for the application."
                                  },
                                  "contract_options": {
                                    "type": "object",
                                    "properties": {
                                      "automatic_counter_signature": {
                                        "type": "boolean",
                                        "description": "Whether to automatically counter sign the contract."
                                      },
                                      "legal_entity": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The legal entity for the contract."
                                      },
                                      "owner_signature_required": {
                                        "type": "boolean",
                                        "description": "Whether the owner signature is required."
                                      },
                                      "send_applicant_email": {
                                        "type": "boolean",
                                        "description": "Whether to send an email to the applicant."
                                      },
                                      "send_owner_completion_email": {
                                        "type": "boolean",
                                        "description": "Whether to send the owner a completion email."
                                      }
                                    },
                                    "description": "The contract options for the application."
                                  },
                                  "contract_template": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the contract template for the application."
                                  },
                                  "current_step": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "advance_rent"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Advance rent",
                                        "description": "The advance rent step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "completion"
                                            ],
                                            "description": "The type of the step."
                                          },
                                          "completion": {
                                            "type": "object",
                                            "properties": {
                                              "behavior": {
                                                "type": "string",
                                                "enum": [
                                                  "automatic",
                                                  "manual"
                                                ],
                                                "description": "The completion behavior for the step."
                                              }
                                            },
                                            "required": [
                                              "behavior"
                                            ],
                                            "description": "The completion settings for the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "completion"
                                        ],
                                        "title": "Completion",
                                        "description": "The completion step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "contract"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Contract",
                                        "description": "The contract step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "deposit"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Deposit",
                                        "description": "The deposit step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "holding_fee"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Holding fee",
                                        "description": "The holding fee step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "partial_payment"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Partial payment",
                                        "description": "The partial payment step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "payment_method"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Payment method",
                                        "description": "The payment method step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "pre_qualification"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Pre-qualification",
                                        "description": "The pre-qualification step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "referencing"
                                            ]
                                          },
                                          "referencing": {
                                            "type": "object",
                                            "properties": {
                                              "automatic_reference": {
                                                "type": "object",
                                                "properties": {
                                                  "enabled": {
                                                    "type": "boolean",
                                                    "description": "Whether the automatic reference is enabled."
                                                  },
                                                  "provider": {
                                                    "type": "string",
                                                    "enum": [
                                                      "advance_rent",
                                                      "canopy",
                                                      "homelet",
                                                      "let_alliance"
                                                    ],
                                                    "description": "The provider to use with automatic referencing."
                                                  }
                                                },
                                                "required": [
                                                  "enabled",
                                                  "provider"
                                                ],
                                                "description": "The automatic reference settings."
                                              }
                                            },
                                            "description": "The referencing settings for the application configuration step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Referencing",
                                        "description": "The referencing step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "verification_session"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Verification session",
                                        "description": "The verification session step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "waitpoint"
                                            ]
                                          },
                                          "waitpoint": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "description": "The name of the waitpoint."
                                              }
                                            },
                                            "required": [
                                              "name"
                                            ],
                                            "description": "The waitpoint settings for the application configuration step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Waitpoint",
                                        "description": "The waitpoint step."
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The current step of the application configuration."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "enum": [
                                      "gbp",
                                      "usd",
                                      "eur",
                                      "sek"
                                    ],
                                    "description": "The currency for the application.",
                                    "example": "gbp"
                                  },
                                  "deal_assignee": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^[a-zA-Z0-9_]+$",
                                    "description": "The identifier of the deal assignee for the application."
                                  },
                                  "deposit_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The deposit amount for the application."
                                  },
                                  "has_owner": {
                                    "type": "boolean",
                                    "description": "Whether the application has an owner."
                                  },
                                  "holding_fee_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The holding fee amount for the application."
                                  },
                                  "end_behavior": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "roll",
                                      "complete",
                                      null
                                    ],
                                    "description": "The end behavior for the application."
                                  },
                                  "end_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The end date of the application."
                                  },
                                  "from_application": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "revision"
                                        ],
                                        "description": "The action of the application."
                                      },
                                      "application": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application."
                                      }
                                    },
                                    "required": [
                                      "action",
                                      "application"
                                    ],
                                    "description": "The from application for the application."
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "The metadata for the application."
                                  },
                                  "move_in_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The expected move in date for the application."
                                  },
                                  "move_out_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The expected move out date for the application."
                                  },
                                  "open": {
                                    "type": "boolean",
                                    "description": "Whether the application is open."
                                  },
                                  "owner_options": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "apply_unit_fees": {
                                        "type": "boolean",
                                        "description": "Whether to apply unit fees to the owner."
                                      }
                                    },
                                    "description": "The owner options for the application."
                                  },
                                  "partial_payment": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "amount": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 99999900,
                                        "description": "The partial payment amount."
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The description of the partial payment."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "description"
                                    ],
                                    "description": "The partial payment details for the application."
                                  },
                                  "rent_term": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The rent term for the application."
                                  },
                                  "start_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The start date of the application."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the application."
                                  },
                                  "steps": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "description": "The identifier of the step."
                                        },
                                        "status": {
                                          "type": "string",
                                          "description": "The status of the step."
                                        },
                                        "type": {
                                          "type": "string",
                                          "description": "The type of the step."
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "status",
                                        "type"
                                      ]
                                    },
                                    "description": "The steps of the application configuration."
                                  },
                                  "subscription_data": {
                                    "type": "object",
                                    "properties": {
                                      "add_invoice_items": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount to be charged, represented as a whole integer if possible."
                                            },
                                            "currency": {
                                              "type": "string",
                                              "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                            },
                                            "description": {
                                              "type": "string",
                                              "description": "The description for the invoice item, to be displayed to the customer."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The ID of the price object."
                                            },
                                            "tax_percent": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 100,
                                              "description": "The tax percentage to use when calculating the tax amount."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The ID of the tax rate object."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The invoice item transfer behavior. The default is automatic."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the invoice item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The ID of the unit the invoice item is for."
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency",
                                            "description",
                                            "tax_percent",
                                            "transfer_behavior",
                                            "type"
                                          ]
                                        },
                                        "maxItems": 10,
                                        "description": "A list of invoice items to add to invoices created by the subscription."
                                      },
                                      "billing_anchor": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The reference point that aligns future billing cycle dates."
                                      },
                                      "billing_anchor_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day_of_month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month to anchor billing to."
                                          }
                                        },
                                        "required": [
                                          "day_of_month"
                                        ],
                                        "description": "Configuration for the billing anchor."
                                      },
                                      "collection_method": {
                                        "type": "string",
                                        "enum": [
                                          "charge_automatically",
                                          "send_invoice"
                                        ],
                                        "description": "The collection method for the subscription."
                                      },
                                      "coupon": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the coupon to apply to the subscription."
                                      },
                                      "custom_fields": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "maxLength": 30,
                                              "description": "The name of the custom field."
                                            },
                                            "value": {
                                              "type": "string",
                                              "maxLength": 30,
                                              "description": "The value of the custom field."
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "value"
                                          ]
                                        },
                                        "maxItems": 4,
                                        "description": "Custom fields attached to the subscription invoices."
                                      },
                                      "days_before_collection": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 7,
                                        "description": "The number of days before the due date to attempt collection."
                                      },
                                      "days_until_due": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "minimum": 0,
                                        "description": "The number of days until the invoice is due."
                                      },
                                      "end_date": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The end date of the subscription."
                                      },
                                      "end_date_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month for the end date."
                                          },
                                          "month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 12,
                                            "description": "The month for the end date."
                                          },
                                          "year": {
                                            "type": "integer",
                                            "description": "The year for the end date."
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ],
                                        "description": "Configuration to compute the end date of the subscription."
                                      },
                                      "first_invoice_creation": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "immediately",
                                          null
                                        ],
                                        "description": "Whether to create the first invoice immediately."
                                      },
                                      "interval_count": {
                                        "type": "integer",
                                        "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items for the subscription. Required when interval is not custom."
                                      },
                                      "phases": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start_date": {
                                              "type": "integer",
                                              "description": "The start date of the phase."
                                            },
                                            "items": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "description": {
                                                    "type": "string",
                                                    "description": "The description of the subscription item."
                                                  },
                                                  "metadata": {
                                                    "type": [
                                                      "object",
                                                      "null"
                                                    ],
                                                    "additionalProperties": {
                                                      "type": "string"
                                                    },
                                                    "description": "Set of key-value pairs to attach to the subscription item."
                                                  },
                                                  "price": {
                                                    "type": "string",
                                                    "description": "The identifier of the price to use for the subscription item."
                                                  },
                                                  "price_data": {
                                                    "type": "object",
                                                    "properties": {
                                                      "amount": {
                                                        "type": "number",
                                                        "description": "The amount of the price."
                                                      },
                                                      "currency": {
                                                        "type": "string",
                                                        "description": "The currency of the price."
                                                      },
                                                      "tax_percent": {
                                                        "type": "number",
                                                        "description": "The tax percentage to apply to the price."
                                                      }
                                                    },
                                                    "required": [
                                                      "amount",
                                                      "currency",
                                                      "tax_percent"
                                                    ],
                                                    "description": "The price data for the subscription item."
                                                  },
                                                  "proration_behavior": {
                                                    "type": "string",
                                                    "enum": [
                                                      "create_prorations",
                                                      "none"
                                                    ],
                                                    "description": "Whether to create prorations when creating the subscription item."
                                                  },
                                                  "schedule": {
                                                    "type": [
                                                      "array",
                                                      "null"
                                                    ],
                                                    "items": {
                                                      "type": "object",
                                                      "properties": {
                                                        "amount": {
                                                          "type": "integer",
                                                          "description": "The amount for the scheduled change."
                                                        },
                                                        "effective_at": {
                                                          "type": "integer",
                                                          "description": "The date the scheduled change takes effect."
                                                        },
                                                        "effective_at_config": {
                                                          "type": "object",
                                                          "properties": {
                                                            "day": {
                                                              "type": "integer",
                                                              "minimum": 1,
                                                              "maximum": 31,
                                                              "description": "The day of the month the scheduled change takes effect."
                                                            },
                                                            "month": {
                                                              "type": "integer",
                                                              "minimum": 1,
                                                              "maximum": 12,
                                                              "description": "The month the scheduled change takes effect."
                                                            },
                                                            "year": {
                                                              "type": "integer",
                                                              "description": "The year the scheduled change takes effect."
                                                            }
                                                          },
                                                          "required": [
                                                            "day",
                                                            "month",
                                                            "year"
                                                          ],
                                                          "description": "Configuration to compute the effective date of the scheduled change."
                                                        }
                                                      },
                                                      "required": [
                                                        "amount"
                                                      ]
                                                    },
                                                    "description": "The schedule for the subscription item."
                                                  },
                                                  "tax_rate": {
                                                    "type": "string",
                                                    "description": "The identifier of the tax rate for the subscription item."
                                                  },
                                                  "transfer_behavior": {
                                                    "type": "string",
                                                    "enum": [
                                                      "automatic",
                                                      "owner",
                                                      "none"
                                                    ],
                                                    "description": "The transfer behavior for the subscription item."
                                                  },
                                                  "transfer_destination": {
                                                    "type": "string",
                                                    "description": "The identifier of the connected account to transfer funds to."
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "enum": [
                                                      "charge",
                                                      "rent",
                                                      "product"
                                                    ],
                                                    "description": "The type of the subscription item."
                                                  },
                                                  "unit": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The identifier of the unit associated with the subscription item."
                                                  }
                                                },
                                                "required": [
                                                  "price_data",
                                                  "type"
                                                ]
                                              },
                                              "minItems": 1,
                                              "maxItems": 10,
                                              "description": "The items in the phase."
                                            }
                                          },
                                          "required": [
                                            "start_date",
                                            "items"
                                          ]
                                        },
                                        "minItems": 1,
                                        "description": "The phases of the subscription. Required when interval is custom."
                                      },
                                      "start_date": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The start date of the subscription."
                                      },
                                      "start_date_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month for the start date."
                                          },
                                          "month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 12,
                                            "description": "The month for the start date."
                                          },
                                          "year": {
                                            "type": "integer",
                                            "description": "The year for the start date."
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ],
                                        "description": "Configuration to compute the start date of the subscription."
                                      },
                                      "interval": {
                                        "type": "string",
                                        "enum": [
                                          "month",
                                          "week",
                                          "custom",
                                          "upfront"
                                        ],
                                        "description": "The billing interval for the subscription."
                                      }
                                    },
                                    "required": [
                                      "collection_method",
                                      "interval"
                                    ],
                                    "description": "The subscription data for the application."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "active_tenancy",
                                      "let_only",
                                      "renewal",
                                      "standard"
                                    ],
                                    "description": "The type of the application."
                                  },
                                  "unit": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "description": "The identifier of the unit for the application."
                                  },
                                  "unit_snapshot": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "description": "The name of the unit."
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "description": "A snapshot of the unit at the time of the application."
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "advance_rent_amount",
                                  "application_configuration",
                                  "application_mode",
                                  "assignee",
                                  "building",
                                  "building_snapshot",
                                  "completed_at",
                                  "contract",
                                  "contract_address",
                                  "contract_options",
                                  "contract_template",
                                  "current_step",
                                  "currency",
                                  "deal_assignee",
                                  "deposit_amount",
                                  "has_owner",
                                  "holding_fee_amount",
                                  "end_behavior",
                                  "end_date",
                                  "from_application",
                                  "move_in_date",
                                  "move_out_date",
                                  "open",
                                  "owner_options",
                                  "partial_payment",
                                  "rent_term",
                                  "start_date",
                                  "status",
                                  "subscription_data",
                                  "type",
                                  "unit",
                                  "unit_snapshot"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "assignee": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "canceled_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "completed_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "due_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "no_renewal": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reason_description": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sub_reason": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            }
                          },
                          "renewal": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "end_date": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "start_date": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            }
                          },
                          "rent_increase": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "current_rent": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "proposed_rent": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "notice_served_at": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "notice_file": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "notice_file_url": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "uri"
                              },
                              "effective_date": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "tribunal_reference": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "tribunal_outcome_rent": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "tribunal_decided_at": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "reversed_at": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            }
                          },
                          "source_application": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "application"
                                    ]
                                  },
                                  "advance_rent_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The advance rent amount for the application."
                                  },
                                  "applicants": {
                                    "type": "object",
                                    "properties": {
                                      "count": {
                                        "type": "number",
                                        "description": "Total number of items in the list.",
                                        "example": 1
                                      },
                                      "has_more": {
                                        "type": "boolean",
                                        "description": "Whether more items are available.",
                                        "example": false
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "list"
                                        ]
                                      },
                                      "data": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "description": "Unique identifier for the object."
                                            },
                                            "created": {
                                              "type": "number",
                                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                            },
                                            "account": {
                                              "type": "string",
                                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                            },
                                            "deleted": {
                                              "type": "boolean",
                                              "default": false,
                                              "description": "Only returned if the object has been deleted."
                                            },
                                            "object": {
                                              "type": "string",
                                              "enum": [
                                                "application.applicant"
                                              ]
                                            },
                                            "application": {
                                              "type": "string",
                                              "pattern": "^[a-zA-Z0-9_]+$",
                                              "description": "The identifier of the application the applicant belongs to."
                                            },
                                            "advance_rent": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The advance rent amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the advance rent has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the advance rent was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the advance rent transaction."
                                                }
                                              },
                                              "description": "The advance rent details for the applicant."
                                            },
                                            "currency": {
                                              "type": "string",
                                              "enum": [
                                                "gbp",
                                                "usd",
                                                "eur",
                                                "sek"
                                              ],
                                              "description": "The currency for the applicant.",
                                              "example": "gbp"
                                            },
                                            "customer": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": {}
                                                }
                                              ],
                                              "description": "The customer associated with the applicant."
                                            },
                                            "deposit": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The deposit amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the deposit has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the deposit was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the deposit transaction."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "paid",
                                                "paid_off_platform",
                                                "transaction"
                                              ],
                                              "description": "The deposit details for the applicant."
                                            },
                                            "guarantor": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the guarantor for the applicant."
                                            },
                                            "guarantor_contract": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the guarantor contract for the applicant."
                                            },
                                            "holding_fee": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The holding fee amount for the applicant."
                                                },
                                                "paid": {
                                                  "type": "boolean",
                                                  "description": "Whether the holding fee has been paid."
                                                },
                                                "paid_off_platform": {
                                                  "type": "boolean",
                                                  "description": "Whether the holding fee was paid off platform."
                                                },
                                                "transaction": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The identifier of the holding fee transaction."
                                                }
                                              },
                                              "description": "The holding fee details for the applicant."
                                            },
                                            "lead_tenant": {
                                              "type": "boolean",
                                              "description": "Whether the applicant is the lead tenant."
                                            },
                                            "pets": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "age": {
                                                    "type": [
                                                      "number",
                                                      "null"
                                                    ],
                                                    "description": "The age of the pet."
                                                  },
                                                  "name": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The name of the pet."
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "enum": [
                                                      "dog",
                                                      "cat",
                                                      "small_animal",
                                                      "bird",
                                                      "fish",
                                                      "other"
                                                    ],
                                                    "description": "The species of the pet."
                                                  }
                                                },
                                                "required": [
                                                  "age",
                                                  "name",
                                                  "type"
                                                ]
                                              },
                                              "description": "The pets of the applicant."
                                            },
                                            "permitted_occupier": {
                                              "type": "boolean",
                                              "description": "Whether the applicant is a permitted occupier."
                                            },
                                            "pre_qualification": {
                                              "type": "object",
                                              "properties": {
                                                "affordability": {
                                                  "type": "object",
                                                  "properties": {
                                                    "company_name": {
                                                      "type": "string",
                                                      "description": "The name of the company the applicant works for."
                                                    },
                                                    "gross_annual_salary": {
                                                      "type": "number",
                                                      "description": "The gross annual salary of the applicant."
                                                    },
                                                    "role": {
                                                      "type": "string",
                                                      "description": "The role of the applicant."
                                                    }
                                                  },
                                                  "description": "The affordability details for the applicant."
                                                },
                                                "nationality": {
                                                  "type": "string",
                                                  "description": "The nationality of the applicant."
                                                }
                                              },
                                              "description": "The pre-qualification details for the applicant."
                                            },
                                            "requirements": {
                                              "type": "object",
                                              "properties": {
                                                "guarantor": {
                                                  "type": "boolean",
                                                  "description": "Whether the applicant needs a guarantor."
                                                }
                                              },
                                              "required": [
                                                "guarantor"
                                              ]
                                            },
                                            "share_of_rent": {
                                              "type": "number",
                                              "description": "The share of rent for the applicant."
                                            },
                                            "status": {
                                              "type": "string",
                                              "description": "The status of the applicant."
                                            },
                                            "tos_acceptance": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "properties": {
                                                "date": {
                                                  "type": [
                                                    "number",
                                                    "null"
                                                  ],
                                                  "description": "The date the terms of service were accepted."
                                                },
                                                "ip": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ],
                                                  "description": "The IP address from which the terms of service were accepted."
                                                }
                                              },
                                              "required": [
                                                "date",
                                                "ip"
                                              ],
                                              "description": "The terms of service acceptance details for the applicant."
                                            }
                                          },
                                          "required": [
                                            "id",
                                            "created",
                                            "object",
                                            "application",
                                            "advance_rent",
                                            "currency",
                                            "customer",
                                            "deposit",
                                            "guarantor",
                                            "guarantor_contract",
                                            "holding_fee",
                                            "lead_tenant",
                                            "permitted_occupier",
                                            "requirements",
                                            "share_of_rent",
                                            "status",
                                            "tos_acceptance"
                                          ]
                                        }
                                      }
                                    },
                                    "required": [
                                      "count",
                                      "has_more",
                                      "object",
                                      "data"
                                    ],
                                    "description": "The applicants for the application."
                                  },
                                  "application_configuration": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the application configuration."
                                  },
                                  "application_mode": {
                                    "type": "string",
                                    "enum": [
                                      "classic",
                                      "configuration"
                                    ],
                                    "description": "The mode of the application."
                                  },
                                  "assignee": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^[a-zA-Z0-9_]+$",
                                    "description": "The identifier of the assignee for the application."
                                  },
                                  "building": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "description": "The identifier of the building for the application."
                                  },
                                  "building_snapshot": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "description": "The name of the building."
                                      },
                                      "single_unit": {
                                        "type": "boolean",
                                        "description": "Whether the building has a single unit."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "single_unit"
                                    ],
                                    "description": "A snapshot of the building at the time of the application."
                                  },
                                  "completed_at": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The date and time the application was completed."
                                  },
                                  "contract": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the contract for the application."
                                  },
                                  "contract_address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The address of the contract for the application."
                                  },
                                  "contract_options": {
                                    "type": "object",
                                    "properties": {
                                      "automatic_counter_signature": {
                                        "type": "boolean",
                                        "description": "Whether to automatically counter sign the contract."
                                      },
                                      "legal_entity": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The legal entity for the contract."
                                      },
                                      "owner_signature_required": {
                                        "type": "boolean",
                                        "description": "Whether the owner signature is required."
                                      },
                                      "send_applicant_email": {
                                        "type": "boolean",
                                        "description": "Whether to send an email to the applicant."
                                      },
                                      "send_owner_completion_email": {
                                        "type": "boolean",
                                        "description": "Whether to send the owner a completion email."
                                      }
                                    },
                                    "description": "The contract options for the application."
                                  },
                                  "contract_template": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The identifier of the contract template for the application."
                                  },
                                  "current_step": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "advance_rent"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Advance rent",
                                        "description": "The advance rent step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "completion"
                                            ],
                                            "description": "The type of the step."
                                          },
                                          "completion": {
                                            "type": "object",
                                            "properties": {
                                              "behavior": {
                                                "type": "string",
                                                "enum": [
                                                  "automatic",
                                                  "manual"
                                                ],
                                                "description": "The completion behavior for the step."
                                              }
                                            },
                                            "required": [
                                              "behavior"
                                            ],
                                            "description": "The completion settings for the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "type",
                                          "completion"
                                        ],
                                        "title": "Completion",
                                        "description": "The completion step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "contract"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Contract",
                                        "description": "The contract step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "deposit"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Deposit",
                                        "description": "The deposit step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "holding_fee"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Holding fee",
                                        "description": "The holding fee step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "partial_payment"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Partial payment",
                                        "description": "The partial payment step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "payment_method"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Payment method",
                                        "description": "The payment method step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "pre_qualification"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Pre-qualification",
                                        "description": "The pre-qualification step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "referencing"
                                            ]
                                          },
                                          "referencing": {
                                            "type": "object",
                                            "properties": {
                                              "automatic_reference": {
                                                "type": "object",
                                                "properties": {
                                                  "enabled": {
                                                    "type": "boolean",
                                                    "description": "Whether the automatic reference is enabled."
                                                  },
                                                  "provider": {
                                                    "type": "string",
                                                    "enum": [
                                                      "advance_rent",
                                                      "canopy",
                                                      "homelet",
                                                      "let_alliance"
                                                    ],
                                                    "description": "The provider to use with automatic referencing."
                                                  }
                                                },
                                                "required": [
                                                  "enabled",
                                                  "provider"
                                                ],
                                                "description": "The automatic reference settings."
                                              }
                                            },
                                            "description": "The referencing settings for the application configuration step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Referencing",
                                        "description": "The referencing step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "verification_session"
                                            ],
                                            "description": "The type of the step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Verification session",
                                        "description": "The verification session step."
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "The unique identifier of the step."
                                          },
                                          "next_step": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the next step in the configuration."
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "waitpoint"
                                            ]
                                          },
                                          "waitpoint": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "description": "The name of the waitpoint."
                                              }
                                            },
                                            "required": [
                                              "name"
                                            ],
                                            "description": "The waitpoint settings for the application configuration step."
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "next_step",
                                          "type"
                                        ],
                                        "title": "Waitpoint",
                                        "description": "The waitpoint step."
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The current step of the application configuration."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "enum": [
                                      "gbp",
                                      "usd",
                                      "eur",
                                      "sek"
                                    ],
                                    "description": "The currency for the application.",
                                    "example": "gbp"
                                  },
                                  "deal_assignee": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "pattern": "^[a-zA-Z0-9_]+$",
                                    "description": "The identifier of the deal assignee for the application."
                                  },
                                  "deposit_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The deposit amount for the application."
                                  },
                                  "has_owner": {
                                    "type": "boolean",
                                    "description": "Whether the application has an owner."
                                  },
                                  "holding_fee_amount": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The holding fee amount for the application."
                                  },
                                  "end_behavior": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "roll",
                                      "complete",
                                      null
                                    ],
                                    "description": "The end behavior for the application."
                                  },
                                  "end_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The end date of the application."
                                  },
                                  "from_application": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "revision"
                                        ],
                                        "description": "The action of the application."
                                      },
                                      "application": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application."
                                      }
                                    },
                                    "required": [
                                      "action",
                                      "application"
                                    ],
                                    "description": "The from application for the application."
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "The metadata for the application."
                                  },
                                  "move_in_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The expected move in date for the application."
                                  },
                                  "move_out_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The expected move out date for the application."
                                  },
                                  "open": {
                                    "type": "boolean",
                                    "description": "Whether the application is open."
                                  },
                                  "owner_options": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "apply_unit_fees": {
                                        "type": "boolean",
                                        "description": "Whether to apply unit fees to the owner."
                                      }
                                    },
                                    "description": "The owner options for the application."
                                  },
                                  "partial_payment": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "amount": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 99999900,
                                        "description": "The partial payment amount."
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The description of the partial payment."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "description"
                                    ],
                                    "description": "The partial payment details for the application."
                                  },
                                  "rent_term": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The rent term for the application."
                                  },
                                  "start_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "The start date of the application."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the application."
                                  },
                                  "steps": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "description": "The identifier of the step."
                                        },
                                        "status": {
                                          "type": "string",
                                          "description": "The status of the step."
                                        },
                                        "type": {
                                          "type": "string",
                                          "description": "The type of the step."
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "status",
                                        "type"
                                      ]
                                    },
                                    "description": "The steps of the application configuration."
                                  },
                                  "subscription_data": {
                                    "type": "object",
                                    "properties": {
                                      "add_invoice_items": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount to be charged, represented as a whole integer if possible."
                                            },
                                            "currency": {
                                              "type": "string",
                                              "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                            },
                                            "description": {
                                              "type": "string",
                                              "description": "The description for the invoice item, to be displayed to the customer."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The ID of the price object."
                                            },
                                            "tax_percent": {
                                              "type": "number",
                                              "minimum": 0,
                                              "maximum": 100,
                                              "description": "The tax percentage to use when calculating the tax amount."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The ID of the tax rate object."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The invoice item transfer behavior. The default is automatic."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the invoice item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The ID of the unit the invoice item is for."
                                            }
                                          },
                                          "required": [
                                            "amount",
                                            "currency",
                                            "description",
                                            "tax_percent",
                                            "transfer_behavior",
                                            "type"
                                          ]
                                        },
                                        "maxItems": 10,
                                        "description": "A list of invoice items to add to invoices created by the subscription."
                                      },
                                      "billing_anchor": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The reference point that aligns future billing cycle dates."
                                      },
                                      "billing_anchor_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day_of_month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month to anchor billing to."
                                          }
                                        },
                                        "required": [
                                          "day_of_month"
                                        ],
                                        "description": "Configuration for the billing anchor."
                                      },
                                      "collection_method": {
                                        "type": "string",
                                        "enum": [
                                          "charge_automatically",
                                          "send_invoice"
                                        ],
                                        "description": "The collection method for the subscription."
                                      },
                                      "coupon": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the coupon to apply to the subscription."
                                      },
                                      "custom_fields": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "maxLength": 30,
                                              "description": "The name of the custom field."
                                            },
                                            "value": {
                                              "type": "string",
                                              "maxLength": 30,
                                              "description": "The value of the custom field."
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "value"
                                          ]
                                        },
                                        "maxItems": 4,
                                        "description": "Custom fields attached to the subscription invoices."
                                      },
                                      "days_before_collection": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 7,
                                        "description": "The number of days before the due date to attempt collection."
                                      },
                                      "days_until_due": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "minimum": 0,
                                        "description": "The number of days until the invoice is due."
                                      },
                                      "end_date": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The end date of the subscription."
                                      },
                                      "end_date_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month for the end date."
                                          },
                                          "month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 12,
                                            "description": "The month for the end date."
                                          },
                                          "year": {
                                            "type": "integer",
                                            "description": "The year for the end date."
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ],
                                        "description": "Configuration to compute the end date of the subscription."
                                      },
                                      "first_invoice_creation": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "immediately",
                                          null
                                        ],
                                        "description": "Whether to create the first invoice immediately."
                                      },
                                      "interval_count": {
                                        "type": "integer",
                                        "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items for the subscription. Required when interval is not custom."
                                      },
                                      "phases": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "start_date": {
                                              "type": "integer",
                                              "description": "The start date of the phase."
                                            },
                                            "items": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "description": {
                                                    "type": "string",
                                                    "description": "The description of the subscription item."
                                                  },
                                                  "metadata": {
                                                    "type": [
                                                      "object",
                                                      "null"
                                                    ],
                                                    "additionalProperties": {
                                                      "type": "string"
                                                    },
                                                    "description": "Set of key-value pairs to attach to the subscription item."
                                                  },
                                                  "price": {
                                                    "type": "string",
                                                    "description": "The identifier of the price to use for the subscription item."
                                                  },
                                                  "price_data": {
                                                    "type": "object",
                                                    "properties": {
                                                      "amount": {
                                                        "type": "number",
                                                        "description": "The amount of the price."
                                                      },
                                                      "currency": {
                                                        "type": "string",
                                                        "description": "The currency of the price."
                                                      },
                                                      "tax_percent": {
                                                        "type": "number",
                                                        "description": "The tax percentage to apply to the price."
                                                      }
                                                    },
                                                    "required": [
                                                      "amount",
                                                      "currency",
                                                      "tax_percent"
                                                    ],
                                                    "description": "The price data for the subscription item."
                                                  },
                                                  "proration_behavior": {
                                                    "type": "string",
                                                    "enum": [
                                                      "create_prorations",
                                                      "none"
                                                    ],
                                                    "description": "Whether to create prorations when creating the subscription item."
                                                  },
                                                  "schedule": {
                                                    "type": [
                                                      "array",
                                                      "null"
                                                    ],
                                                    "items": {
                                                      "type": "object",
                                                      "properties": {
                                                        "amount": {
                                                          "type": "integer",
                                                          "description": "The amount for the scheduled change."
                                                        },
                                                        "effective_at": {
                                                          "type": "integer",
                                                          "description": "The date the scheduled change takes effect."
                                                        },
                                                        "effective_at_config": {
                                                          "type": "object",
                                                          "properties": {
                                                            "day": {
                                                              "type": "integer",
                                                              "minimum": 1,
                                                              "maximum": 31,
                                                              "description": "The day of the month the scheduled change takes effect."
                                                            },
                                                            "month": {
                                                              "type": "integer",
                                                              "minimum": 1,
                                                              "maximum": 12,
                                                              "description": "The month the scheduled change takes effect."
                                                            },
                                                            "year": {
                                                              "type": "integer",
                                                              "description": "The year the scheduled change takes effect."
                                                            }
                                                          },
                                                          "required": [
                                                            "day",
                                                            "month",
                                                            "year"
                                                          ],
                                                          "description": "Configuration to compute the effective date of the scheduled change."
                                                        }
                                                      },
                                                      "required": [
                                                        "amount"
                                                      ]
                                                    },
                                                    "description": "The schedule for the subscription item."
                                                  },
                                                  "tax_rate": {
                                                    "type": "string",
                                                    "description": "The identifier of the tax rate for the subscription item."
                                                  },
                                                  "transfer_behavior": {
                                                    "type": "string",
                                                    "enum": [
                                                      "automatic",
                                                      "owner",
                                                      "none"
                                                    ],
                                                    "description": "The transfer behavior for the subscription item."
                                                  },
                                                  "transfer_destination": {
                                                    "type": "string",
                                                    "description": "The identifier of the connected account to transfer funds to."
                                                  },
                                                  "type": {
                                                    "type": "string",
                                                    "enum": [
                                                      "charge",
                                                      "rent",
                                                      "product"
                                                    ],
                                                    "description": "The type of the subscription item."
                                                  },
                                                  "unit": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ],
                                                    "description": "The identifier of the unit associated with the subscription item."
                                                  }
                                                },
                                                "required": [
                                                  "price_data",
                                                  "type"
                                                ]
                                              },
                                              "minItems": 1,
                                              "maxItems": 10,
                                              "description": "The items in the phase."
                                            }
                                          },
                                          "required": [
                                            "start_date",
                                            "items"
                                          ]
                                        },
                                        "minItems": 1,
                                        "description": "The phases of the subscription. Required when interval is custom."
                                      },
                                      "start_date": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "The start date of the subscription."
                                      },
                                      "start_date_config": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 31,
                                            "description": "The day of the month for the start date."
                                          },
                                          "month": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 12,
                                            "description": "The month for the start date."
                                          },
                                          "year": {
                                            "type": "integer",
                                            "description": "The year for the start date."
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ],
                                        "description": "Configuration to compute the start date of the subscription."
                                      },
                                      "interval": {
                                        "type": "string",
                                        "enum": [
                                          "month",
                                          "week",
                                          "custom",
                                          "upfront"
                                        ],
                                        "description": "The billing interval for the subscription."
                                      }
                                    },
                                    "required": [
                                      "collection_method",
                                      "interval"
                                    ],
                                    "description": "The subscription data for the application."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "active_tenancy",
                                      "let_only",
                                      "renewal",
                                      "standard"
                                    ],
                                    "description": "The type of the application."
                                  },
                                  "unit": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      }
                                    ],
                                    "description": "The identifier of the unit for the application."
                                  },
                                  "unit_snapshot": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "description": "The name of the unit."
                                      }
                                    },
                                    "required": [
                                      "name"
                                    ],
                                    "description": "A snapshot of the unit at the time of the application."
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "advance_rent_amount",
                                  "application_configuration",
                                  "application_mode",
                                  "assignee",
                                  "building",
                                  "building_snapshot",
                                  "completed_at",
                                  "contract",
                                  "contract_address",
                                  "contract_options",
                                  "contract_template",
                                  "current_step",
                                  "currency",
                                  "deal_assignee",
                                  "deposit_amount",
                                  "has_owner",
                                  "holding_fee_amount",
                                  "end_behavior",
                                  "end_date",
                                  "from_application",
                                  "move_in_date",
                                  "move_out_date",
                                  "open",
                                  "owner_options",
                                  "partial_payment",
                                  "rent_term",
                                  "start_date",
                                  "status",
                                  "subscription_data",
                                  "type",
                                  "unit",
                                  "unit_snapshot"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "accepted",
                              "canceled",
                              "challenged",
                              "complete",
                              "effective",
                              "leaving",
                              "notice_served",
                              "pending",
                              "renewing",
                              "tribunal_decided",
                              "withdrawn"
                            ]
                          },
                          "type": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "no_renewal",
                              "renewal",
                              "rent_increase",
                              null
                            ]
                          },
                          "unit": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "unit"
                                    ]
                                  },
                                  "active": {
                                    "type": "boolean"
                                  },
                                  "address": {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "archived": {
                                    "type": "boolean"
                                  },
                                  "available_from": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "bathrooms": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "bedrooms": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "building": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique identifier for the object."
                                          },
                                          "created": {
                                            "type": "number",
                                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                          },
                                          "account": {
                                            "type": "string",
                                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                          },
                                          "deleted": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "Only returned if the object has been deleted."
                                          },
                                          "object": {
                                            "type": "string",
                                            "enum": [
                                              "building"
                                            ]
                                          },
                                          "active": {
                                            "type": "boolean"
                                          },
                                          "address": {
                                            "type": "object",
                                            "properties": {
                                              "line1": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "line2": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "city": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "country": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "postal_code": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "state": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            }
                                          },
                                          "currency": {
                                            "type": "string"
                                          },
                                          "description": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "marketing": {
                                            "type": "object",
                                            "properties": {
                                              "featured_photo": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "photos": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            }
                                          },
                                          "metadata": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "additionalProperties": {
                                              "type": "string"
                                            },
                                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "removable": {
                                            "type": "boolean"
                                          },
                                          "single_unit": {
                                            "type": "boolean"
                                          },
                                          "type": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "enum": [
                                              "block_management",
                                              "commercial",
                                              "residential",
                                              "student",
                                              null
                                            ]
                                          },
                                          "unit_fees": {
                                            "type": "object",
                                            "properties": {
                                              "management_fee": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ]
                                              },
                                              "management_fee_amount": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ]
                                              },
                                              "management_fee_discount": {
                                                "type": [
                                                  "object",
                                                  "null"
                                                ],
                                                "properties": {
                                                  "end": {
                                                    "type": [
                                                      "number",
                                                      "null"
                                                    ]
                                                  },
                                                  "percent_off": {
                                                    "type": "number"
                                                  }
                                                },
                                                "required": [
                                                  "end",
                                                  "percent_off"
                                                ]
                                              },
                                              "management_fee_type": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "enum": [
                                                  "percentage",
                                                  "fixed",
                                                  null
                                                ]
                                              },
                                              "renewal_fee": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ]
                                              },
                                              "tax": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ]
                                              },
                                              "tax_behavior": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "enum": [
                                                  "exclusive",
                                                  "inclusive",
                                                  null
                                                ]
                                              },
                                              "tenant_find_fee": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ]
                                              },
                                              "updated_at": {
                                                "type": [
                                                  "integer",
                                                  "null"
                                                ],
                                                "description": "Must be a Unix timestamp in UTC time."
                                              }
                                            },
                                            "required": [
                                              "management_fee",
                                              "management_fee_amount",
                                              "management_fee_discount",
                                              "management_fee_type",
                                              "renewal_fee",
                                              "tax",
                                              "tax_behavior",
                                              "tenant_find_fee",
                                              "updated_at"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "created",
                                          "object",
                                          "active",
                                          "address",
                                          "currency",
                                          "description",
                                          "marketing",
                                          "name",
                                          "removable",
                                          "single_unit",
                                          "type",
                                          "unit_fees"
                                        ]
                                      },
                                      {
                                        "type": "string"
                                      }
                                    ]
                                  },
                                  "completion_date": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "contract_address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "currency_options": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "object",
                                      "properties": {
                                        "deposit_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "rent_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "rent_tax_percent": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "deposit_amount",
                                        "rent_amount"
                                      ]
                                    }
                                  },
                                  "default_deposit": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "default_price": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "default_rent_tax_rate": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique identifier for the object."
                                          },
                                          "created": {
                                            "type": "number",
                                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                          },
                                          "account": {
                                            "type": "string",
                                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                          },
                                          "deleted": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "Only returned if the object has been deleted."
                                          },
                                          "object": {
                                            "type": "string",
                                            "enum": [
                                              "tax_rate"
                                            ]
                                          },
                                          "active": {
                                            "type": "boolean"
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "description": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "inclusive": {
                                            "type": "boolean"
                                          },
                                          "jurisdiction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "percentage": {
                                            "type": "number"
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "created",
                                          "object",
                                          "active",
                                          "country",
                                          "description",
                                          "inclusive",
                                          "jurisdiction",
                                          "name",
                                          "percentage",
                                          "state"
                                        ]
                                      },
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "features": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "aspect": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "n",
                                          "s",
                                          "e",
                                          "w",
                                          "ne",
                                          "nw",
                                          "se",
                                          "sw",
                                          "corner",
                                          null
                                        ]
                                      },
                                      "balcony": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      },
                                      "pet_friendly": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      },
                                      "view": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "min_term": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "fees": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "management_fee": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "management_fee_amount": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "management_fee_discount": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "end": {
                                            "type": [
                                              "number",
                                              "null"
                                            ]
                                          },
                                          "percent_off": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "end",
                                          "percent_off"
                                        ]
                                      },
                                      "management_fee_type": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "percentage",
                                          "fixed",
                                          null
                                        ]
                                      },
                                      "renewal_fee": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "tax": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "tax_behavior": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "exclusive",
                                          "inclusive",
                                          null
                                        ]
                                      },
                                      "tenant_find_fee": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "updated_at": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "Must be a Unix timestamp in UTC time."
                                      }
                                    },
                                    "required": [
                                      "management_fee",
                                      "management_fee_amount",
                                      "management_fee_discount",
                                      "management_fee_type",
                                      "renewal_fee",
                                      "tax",
                                      "tax_behavior",
                                      "tenant_find_fee",
                                      "updated_at"
                                    ]
                                  },
                                  "furnished": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ]
                                  },
                                  "floor": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "has_owner": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ]
                                  },
                                  "compliance": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "epc": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "epc_expires_at": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "electric_safety": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "electric_safety_expires_at": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "gas_safety": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "gas_safety_expires_at": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "gas_safety_required": {
                                        "type": [
                                          "boolean",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "maintenance_threshold": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "management_type": {
                                    "type": "string",
                                    "enum": [
                                      "fully_managed",
                                      "let_only",
                                      "rent_collection"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "reference": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "plot_number": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "rent": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "default": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "maximum": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "minimum": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "sales": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "last_purchase_price": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "square_foot": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "available",
                                      "maintenance",
                                      "occupied",
                                      "offline",
                                      "unmanaged"
                                    ]
                                  },
                                  "under_offer": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "active",
                                  "address",
                                  "available_from",
                                  "bathrooms",
                                  "bedrooms",
                                  "building",
                                  "completion_date",
                                  "contract_address",
                                  "currency",
                                  "currency_options",
                                  "default_deposit",
                                  "default_price",
                                  "default_rent_tax_rate",
                                  "fees",
                                  "furnished",
                                  "floor",
                                  "has_owner",
                                  "maintenance_threshold",
                                  "management_type",
                                  "name",
                                  "plot_number",
                                  "square_foot"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "application",
                          "canceled_at",
                          "completed_at",
                          "source_application",
                          "status",
                          "type",
                          "unit"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/renewal_intents/{id}": {
      "get": {
        "operationId": "renewal_intents_retrieve",
        "summary": "Retrieve a renewal intent",
        "description": "Retrieves the renewal intent with the given ID.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the renewal intent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "renewal_intents_update",
        "summary": "Update a renewal intent",
        "description": "Updates the specified renewal intent. For rent_increase type, you can transition the status through the rent increase flow (pending -> notice_served -> accepted/challenged -> effective) and set rent increase fields. Notice can only be served on or after due_at, and effective_date must be at least 2 months after notice_served_at.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "assignee": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[a-zA-Z0-9_]+$"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "no_renewal": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "affordability",
                          "circumstance_change",
                          "relocating",
                          "unit_issue",
                          "other",
                          null
                        ]
                      },
                      "sub_reason": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "reason_description": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  },
                  "renewal": {
                    "type": "object",
                    "properties": {
                      "end_date": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "start_date": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    }
                  },
                  "rent_increase": {
                    "type": "object",
                    "properties": {
                      "current_rent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "proposed_rent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "notice_served_at": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "effective_date": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tribunal_reference": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "tribunal_outcome_rent": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "tribunal_decided_at": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "reversed_at": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "notice_served",
                      "accepted",
                      "challenged",
                      "tribunal_decided",
                      "effective",
                      "withdrawn"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "no_renewal",
                      "renewal",
                      "rent_increase"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the renewal intent if the update succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/renewal_intents/{id}/cancel": {
      "post": {
        "operationId": "renewal_intents_cancel",
        "summary": "Cancel a renewal intent",
        "description": "Permanently cancel a renewal intent. This cannot be undone.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the canceled renewal intent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/renewal_intents/{id}/complete": {
      "post": {
        "operationId": "renewal_intents_complete",
        "summary": "Complete a renewal intent",
        "description": "Completes a renewal intent. For no_renewal type, marks as complete. For rent_increase type, marks as effective (requires status to be accepted or tribunal_decided). This cannot be undone.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the completed renewal intent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/renewal_intents/{id}/reverse": {
      "post": {
        "operationId": "renewal_intents_reverse",
        "summary": "Reverse an effective rent increase",
        "description": "Reverses a rent increase that has already taken effect. This is intended for cases where a tenant referred the increase to a tribunal before the effective date but did not communicate this in time. The intent status is reverted to challenged, the subscription schedule change is undone, and the intent is re-linked to the tenancy. Only applicable to rent_increase intents in effective status.",
        "tags": [
          "Renewal Intents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the reversed renewal intent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "renewal_intent"
                      ]
                    },
                    "application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignee": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canceled_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "due_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "no_renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sub_reason": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "renewal": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "end_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "start_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "rent_increase": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "current_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "proposed_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_served_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "notice_file": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "notice_file_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uri"
                        },
                        "effective_date": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tribunal_outcome_rent": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "tribunal_decided_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "reversed_at": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "source_application": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "application"
                              ]
                            },
                            "advance_rent_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The advance rent amount for the application."
                            },
                            "applicants": {
                              "type": "object",
                              "properties": {
                                "count": {
                                  "type": "number",
                                  "description": "Total number of items in the list.",
                                  "example": 1
                                },
                                "has_more": {
                                  "type": "boolean",
                                  "description": "Whether more items are available.",
                                  "example": false
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "list"
                                  ]
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "application.applicant"
                                        ]
                                      },
                                      "application": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_]+$",
                                        "description": "The identifier of the application the applicant belongs to."
                                      },
                                      "advance_rent": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The advance rent amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the advance rent was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the advance rent transaction."
                                          }
                                        },
                                        "description": "The advance rent details for the applicant."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "gbp",
                                          "usd",
                                          "eur",
                                          "sek"
                                        ],
                                        "description": "The currency for the applicant.",
                                        "example": "gbp"
                                      },
                                      "customer": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          }
                                        ],
                                        "description": "The customer associated with the applicant."
                                      },
                                      "deposit": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The deposit amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the deposit has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the deposit was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the deposit transaction."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "paid",
                                          "paid_off_platform",
                                          "transaction"
                                        ],
                                        "description": "The deposit details for the applicant."
                                      },
                                      "guarantor": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor for the applicant."
                                      },
                                      "guarantor_contract": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the guarantor contract for the applicant."
                                      },
                                      "holding_fee": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The holding fee amount for the applicant."
                                          },
                                          "paid": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee has been paid."
                                          },
                                          "paid_off_platform": {
                                            "type": "boolean",
                                            "description": "Whether the holding fee was paid off platform."
                                          },
                                          "transaction": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The identifier of the holding fee transaction."
                                          }
                                        },
                                        "description": "The holding fee details for the applicant."
                                      },
                                      "lead_tenant": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is the lead tenant."
                                      },
                                      "pets": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "age": {
                                              "type": [
                                                "number",
                                                "null"
                                              ],
                                              "description": "The age of the pet."
                                            },
                                            "name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The name of the pet."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "dog",
                                                "cat",
                                                "small_animal",
                                                "bird",
                                                "fish",
                                                "other"
                                              ],
                                              "description": "The species of the pet."
                                            }
                                          },
                                          "required": [
                                            "age",
                                            "name",
                                            "type"
                                          ]
                                        },
                                        "description": "The pets of the applicant."
                                      },
                                      "permitted_occupier": {
                                        "type": "boolean",
                                        "description": "Whether the applicant is a permitted occupier."
                                      },
                                      "pre_qualification": {
                                        "type": "object",
                                        "properties": {
                                          "affordability": {
                                            "type": "object",
                                            "properties": {
                                              "company_name": {
                                                "type": "string",
                                                "description": "The name of the company the applicant works for."
                                              },
                                              "gross_annual_salary": {
                                                "type": "number",
                                                "description": "The gross annual salary of the applicant."
                                              },
                                              "role": {
                                                "type": "string",
                                                "description": "The role of the applicant."
                                              }
                                            },
                                            "description": "The affordability details for the applicant."
                                          },
                                          "nationality": {
                                            "type": "string",
                                            "description": "The nationality of the applicant."
                                          }
                                        },
                                        "description": "The pre-qualification details for the applicant."
                                      },
                                      "requirements": {
                                        "type": "object",
                                        "properties": {
                                          "guarantor": {
                                            "type": "boolean",
                                            "description": "Whether the applicant needs a guarantor."
                                          }
                                        },
                                        "required": [
                                          "guarantor"
                                        ]
                                      },
                                      "share_of_rent": {
                                        "type": "number",
                                        "description": "The share of rent for the applicant."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "The status of the applicant."
                                      },
                                      "tos_acceptance": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "date": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "description": "The date the terms of service were accepted."
                                          },
                                          "ip": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "description": "The IP address from which the terms of service were accepted."
                                          }
                                        },
                                        "required": [
                                          "date",
                                          "ip"
                                        ],
                                        "description": "The terms of service acceptance details for the applicant."
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "application",
                                      "advance_rent",
                                      "currency",
                                      "customer",
                                      "deposit",
                                      "guarantor",
                                      "guarantor_contract",
                                      "holding_fee",
                                      "lead_tenant",
                                      "permitted_occupier",
                                      "requirements",
                                      "share_of_rent",
                                      "status",
                                      "tos_acceptance"
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "count",
                                "has_more",
                                "object",
                                "data"
                              ],
                              "description": "The applicants for the application."
                            },
                            "application_configuration": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the application configuration."
                            },
                            "application_mode": {
                              "type": "string",
                              "enum": [
                                "classic",
                                "configuration"
                              ],
                              "description": "The mode of the application."
                            },
                            "assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the assignee for the application."
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the building for the application."
                            },
                            "building_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the building."
                                },
                                "single_unit": {
                                  "type": "boolean",
                                  "description": "Whether the building has a single unit."
                                }
                              },
                              "required": [
                                "name",
                                "single_unit"
                              ],
                              "description": "A snapshot of the building at the time of the application."
                            },
                            "completed_at": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The date and time the application was completed."
                            },
                            "contract": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract for the application."
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address of the contract for the application."
                            },
                            "contract_options": {
                              "type": "object",
                              "properties": {
                                "automatic_counter_signature": {
                                  "type": "boolean",
                                  "description": "Whether to automatically counter sign the contract."
                                },
                                "legal_entity": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The legal entity for the contract."
                                },
                                "owner_signature_required": {
                                  "type": "boolean",
                                  "description": "Whether the owner signature is required."
                                },
                                "send_applicant_email": {
                                  "type": "boolean",
                                  "description": "Whether to send an email to the applicant."
                                },
                                "send_owner_completion_email": {
                                  "type": "boolean",
                                  "description": "Whether to send the owner a completion email."
                                }
                              },
                              "description": "The contract options for the application."
                            },
                            "contract_template": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The identifier of the contract template for the application."
                            },
                            "current_step": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "advance_rent"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Advance rent",
                                  "description": "The advance rent step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "completion"
                                      ],
                                      "description": "The type of the step."
                                    },
                                    "completion": {
                                      "type": "object",
                                      "properties": {
                                        "behavior": {
                                          "type": "string",
                                          "enum": [
                                            "automatic",
                                            "manual"
                                          ],
                                          "description": "The completion behavior for the step."
                                        }
                                      },
                                      "required": [
                                        "behavior"
                                      ],
                                      "description": "The completion settings for the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "completion"
                                  ],
                                  "title": "Completion",
                                  "description": "The completion step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "contract"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Contract",
                                  "description": "The contract step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "deposit"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Deposit",
                                  "description": "The deposit step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "holding_fee"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Holding fee",
                                  "description": "The holding fee step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "partial_payment"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Partial payment",
                                  "description": "The partial payment step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "payment_method"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Payment method",
                                  "description": "The payment method step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "pre_qualification"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Pre-qualification",
                                  "description": "The pre-qualification step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "referencing"
                                      ]
                                    },
                                    "referencing": {
                                      "type": "object",
                                      "properties": {
                                        "automatic_reference": {
                                          "type": "object",
                                          "properties": {
                                            "enabled": {
                                              "type": "boolean",
                                              "description": "Whether the automatic reference is enabled."
                                            },
                                            "provider": {
                                              "type": "string",
                                              "enum": [
                                                "advance_rent",
                                                "canopy",
                                                "homelet",
                                                "let_alliance"
                                              ],
                                              "description": "The provider to use with automatic referencing."
                                            }
                                          },
                                          "required": [
                                            "enabled",
                                            "provider"
                                          ],
                                          "description": "The automatic reference settings."
                                        }
                                      },
                                      "description": "The referencing settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Referencing",
                                  "description": "The referencing step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "verification_session"
                                      ],
                                      "description": "The type of the step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Verification session",
                                  "description": "The verification session step."
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "The unique identifier of the step."
                                    },
                                    "next_step": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "description": "The identifier of the next step in the configuration."
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "waitpoint"
                                      ]
                                    },
                                    "waitpoint": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "The name of the waitpoint."
                                        }
                                      },
                                      "required": [
                                        "name"
                                      ],
                                      "description": "The waitpoint settings for the application configuration step."
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "next_step",
                                    "type"
                                  ],
                                  "title": "Waitpoint",
                                  "description": "The waitpoint step."
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The current step of the application configuration."
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "gbp",
                                "usd",
                                "eur",
                                "sek"
                              ],
                              "description": "The currency for the application.",
                              "example": "gbp"
                            },
                            "deal_assignee": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "pattern": "^[a-zA-Z0-9_]+$",
                              "description": "The identifier of the deal assignee for the application."
                            },
                            "deposit_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The deposit amount for the application."
                            },
                            "has_owner": {
                              "type": "boolean",
                              "description": "Whether the application has an owner."
                            },
                            "holding_fee_amount": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The holding fee amount for the application."
                            },
                            "end_behavior": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "roll",
                                "complete",
                                null
                              ],
                              "description": "The end behavior for the application."
                            },
                            "end_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The end date of the application."
                            },
                            "from_application": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "revision"
                                  ],
                                  "description": "The action of the application."
                                },
                                "application": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "pattern": "^[a-zA-Z0-9_]+$",
                                  "description": "The identifier of the application."
                                }
                              },
                              "required": [
                                "action",
                                "application"
                              ],
                              "description": "The from application for the application."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "The metadata for the application."
                            },
                            "move_in_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move in date for the application."
                            },
                            "move_out_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The expected move out date for the application."
                            },
                            "open": {
                              "type": "boolean",
                              "description": "Whether the application is open."
                            },
                            "owner_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "apply_unit_fees": {
                                  "type": "boolean",
                                  "description": "Whether to apply unit fees to the owner."
                                }
                              },
                              "description": "The owner options for the application."
                            },
                            "partial_payment": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 99999900,
                                  "description": "The partial payment amount."
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The description of the partial payment."
                                }
                              },
                              "required": [
                                "amount",
                                "description"
                              ],
                              "description": "The partial payment details for the application."
                            },
                            "rent_term": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The rent term for the application."
                            },
                            "start_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The start date of the application."
                            },
                            "status": {
                              "type": "string",
                              "description": "The status of the application."
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "The identifier of the step."
                                  },
                                  "status": {
                                    "type": "string",
                                    "description": "The status of the step."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of the step."
                                  }
                                },
                                "required": [
                                  "id",
                                  "status",
                                  "type"
                                ]
                              },
                              "description": "The steps of the application configuration."
                            },
                            "subscription_data": {
                              "type": "object",
                              "properties": {
                                "add_invoice_items": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "integer",
                                        "description": "The amount to be charged, represented as a whole integer if possible."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                                      },
                                      "description": {
                                        "type": "string",
                                        "description": "The description for the invoice item, to be displayed to the customer."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The ID of the price object."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100,
                                        "description": "The tax percentage to use when calculating the tax amount."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The ID of the tax rate object."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The invoice item transfer behavior. The default is automatic."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the invoice item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The ID of the unit the invoice item is for."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "description",
                                      "tax_percent",
                                      "transfer_behavior",
                                      "type"
                                    ]
                                  },
                                  "maxItems": 10,
                                  "description": "A list of invoice items to add to invoices created by the subscription."
                                },
                                "billing_anchor": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The reference point that aligns future billing cycle dates."
                                },
                                "billing_anchor_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day_of_month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month to anchor billing to."
                                    }
                                  },
                                  "required": [
                                    "day_of_month"
                                  ],
                                  "description": "Configuration for the billing anchor."
                                },
                                "collection_method": {
                                  "type": "string",
                                  "enum": [
                                    "charge_automatically",
                                    "send_invoice"
                                  ],
                                  "description": "The collection method for the subscription."
                                },
                                "coupon": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "The identifier of the coupon to apply to the subscription."
                                },
                                "custom_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The name of the custom field."
                                      },
                                      "value": {
                                        "type": "string",
                                        "maxLength": 30,
                                        "description": "The value of the custom field."
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "value"
                                    ]
                                  },
                                  "maxItems": 4,
                                  "description": "Custom fields attached to the subscription invoices."
                                },
                                "days_before_collection": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 7,
                                  "description": "The number of days before the due date to attempt collection."
                                },
                                "days_until_due": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "minimum": 0,
                                  "description": "The number of days until the invoice is due."
                                },
                                "end_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The end date of the subscription."
                                },
                                "end_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the end date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the end date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the end date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the end date of the subscription."
                                },
                                "first_invoice_creation": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "immediately",
                                    null
                                  ],
                                  "description": "Whether to create the first invoice immediately."
                                },
                                "interval_count": {
                                  "type": "integer",
                                  "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "description": {
                                        "type": "string",
                                        "description": "The description of the subscription item."
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs to attach to the subscription item."
                                      },
                                      "price": {
                                        "type": "string",
                                        "description": "The identifier of the price to use for the subscription item."
                                      },
                                      "price_data": {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "number",
                                            "description": "The amount of the price."
                                          },
                                          "currency": {
                                            "type": "string",
                                            "description": "The currency of the price."
                                          },
                                          "tax_percent": {
                                            "type": "number",
                                            "description": "The tax percentage to apply to the price."
                                          }
                                        },
                                        "required": [
                                          "amount",
                                          "currency",
                                          "tax_percent"
                                        ],
                                        "description": "The price data for the subscription item."
                                      },
                                      "proration_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "create_prorations",
                                          "none"
                                        ],
                                        "description": "Whether to create prorations when creating the subscription item."
                                      },
                                      "schedule": {
                                        "type": [
                                          "array",
                                          "null"
                                        ],
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "amount": {
                                              "type": "integer",
                                              "description": "The amount for the scheduled change."
                                            },
                                            "effective_at": {
                                              "type": "integer",
                                              "description": "The date the scheduled change takes effect."
                                            },
                                            "effective_at_config": {
                                              "type": "object",
                                              "properties": {
                                                "day": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 31,
                                                  "description": "The day of the month the scheduled change takes effect."
                                                },
                                                "month": {
                                                  "type": "integer",
                                                  "minimum": 1,
                                                  "maximum": 12,
                                                  "description": "The month the scheduled change takes effect."
                                                },
                                                "year": {
                                                  "type": "integer",
                                                  "description": "The year the scheduled change takes effect."
                                                }
                                              },
                                              "required": [
                                                "day",
                                                "month",
                                                "year"
                                              ],
                                              "description": "Configuration to compute the effective date of the scheduled change."
                                            }
                                          },
                                          "required": [
                                            "amount"
                                          ]
                                        },
                                        "description": "The schedule for the subscription item."
                                      },
                                      "tax_rate": {
                                        "type": "string",
                                        "description": "The identifier of the tax rate for the subscription item."
                                      },
                                      "transfer_behavior": {
                                        "type": "string",
                                        "enum": [
                                          "automatic",
                                          "owner",
                                          "none"
                                        ],
                                        "description": "The transfer behavior for the subscription item."
                                      },
                                      "transfer_destination": {
                                        "type": "string",
                                        "description": "The identifier of the connected account to transfer funds to."
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "charge",
                                          "rent",
                                          "product"
                                        ],
                                        "description": "The type of the subscription item."
                                      },
                                      "unit": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "The identifier of the unit associated with the subscription item."
                                      }
                                    },
                                    "required": [
                                      "price_data",
                                      "type"
                                    ]
                                  },
                                  "minItems": 1,
                                  "maxItems": 10,
                                  "description": "The items for the subscription. Required when interval is not custom."
                                },
                                "phases": {
                                  "type": [
                                    "array",
                                    "null"
                                  ],
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "start_date": {
                                        "type": "integer",
                                        "description": "The start date of the phase."
                                      },
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "description": {
                                              "type": "string",
                                              "description": "The description of the subscription item."
                                            },
                                            "metadata": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "additionalProperties": {
                                                "type": "string"
                                              },
                                              "description": "Set of key-value pairs to attach to the subscription item."
                                            },
                                            "price": {
                                              "type": "string",
                                              "description": "The identifier of the price to use for the subscription item."
                                            },
                                            "price_data": {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "number",
                                                  "description": "The amount of the price."
                                                },
                                                "currency": {
                                                  "type": "string",
                                                  "description": "The currency of the price."
                                                },
                                                "tax_percent": {
                                                  "type": "number",
                                                  "description": "The tax percentage to apply to the price."
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency",
                                                "tax_percent"
                                              ],
                                              "description": "The price data for the subscription item."
                                            },
                                            "proration_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "create_prorations",
                                                "none"
                                              ],
                                              "description": "Whether to create prorations when creating the subscription item."
                                            },
                                            "schedule": {
                                              "type": [
                                                "array",
                                                "null"
                                              ],
                                              "items": {
                                                "type": "object",
                                                "properties": {
                                                  "amount": {
                                                    "type": "integer",
                                                    "description": "The amount for the scheduled change."
                                                  },
                                                  "effective_at": {
                                                    "type": "integer",
                                                    "description": "The date the scheduled change takes effect."
                                                  },
                                                  "effective_at_config": {
                                                    "type": "object",
                                                    "properties": {
                                                      "day": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 31,
                                                        "description": "The day of the month the scheduled change takes effect."
                                                      },
                                                      "month": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "maximum": 12,
                                                        "description": "The month the scheduled change takes effect."
                                                      },
                                                      "year": {
                                                        "type": "integer",
                                                        "description": "The year the scheduled change takes effect."
                                                      }
                                                    },
                                                    "required": [
                                                      "day",
                                                      "month",
                                                      "year"
                                                    ],
                                                    "description": "Configuration to compute the effective date of the scheduled change."
                                                  }
                                                },
                                                "required": [
                                                  "amount"
                                                ]
                                              },
                                              "description": "The schedule for the subscription item."
                                            },
                                            "tax_rate": {
                                              "type": "string",
                                              "description": "The identifier of the tax rate for the subscription item."
                                            },
                                            "transfer_behavior": {
                                              "type": "string",
                                              "enum": [
                                                "automatic",
                                                "owner",
                                                "none"
                                              ],
                                              "description": "The transfer behavior for the subscription item."
                                            },
                                            "transfer_destination": {
                                              "type": "string",
                                              "description": "The identifier of the connected account to transfer funds to."
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "charge",
                                                "rent",
                                                "product"
                                              ],
                                              "description": "The type of the subscription item."
                                            },
                                            "unit": {
                                              "type": [
                                                "string",
                                                "null"
                                              ],
                                              "description": "The identifier of the unit associated with the subscription item."
                                            }
                                          },
                                          "required": [
                                            "price_data",
                                            "type"
                                          ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 10,
                                        "description": "The items in the phase."
                                      }
                                    },
                                    "required": [
                                      "start_date",
                                      "items"
                                    ]
                                  },
                                  "minItems": 1,
                                  "description": "The phases of the subscription. Required when interval is custom."
                                },
                                "start_date": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "The start date of the subscription."
                                },
                                "start_date_config": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 31,
                                      "description": "The day of the month for the start date."
                                    },
                                    "month": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 12,
                                      "description": "The month for the start date."
                                    },
                                    "year": {
                                      "type": "integer",
                                      "description": "The year for the start date."
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ],
                                  "description": "Configuration to compute the start date of the subscription."
                                },
                                "interval": {
                                  "type": "string",
                                  "enum": [
                                    "month",
                                    "week",
                                    "custom",
                                    "upfront"
                                  ],
                                  "description": "The billing interval for the subscription."
                                }
                              },
                              "required": [
                                "collection_method",
                                "interval"
                              ],
                              "description": "The subscription data for the application."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "active_tenancy",
                                "let_only",
                                "renewal",
                                "standard"
                              ],
                              "description": "The type of the application."
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ],
                              "description": "The identifier of the unit for the application."
                            },
                            "unit_snapshot": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "description": "The name of the unit."
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "description": "A snapshot of the unit at the time of the application."
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "advance_rent_amount",
                            "application_configuration",
                            "application_mode",
                            "assignee",
                            "building",
                            "building_snapshot",
                            "completed_at",
                            "contract",
                            "contract_address",
                            "contract_options",
                            "contract_template",
                            "current_step",
                            "currency",
                            "deal_assignee",
                            "deposit_amount",
                            "has_owner",
                            "holding_fee_amount",
                            "end_behavior",
                            "end_date",
                            "from_application",
                            "move_in_date",
                            "move_out_date",
                            "open",
                            "owner_options",
                            "partial_payment",
                            "rent_term",
                            "start_date",
                            "status",
                            "subscription_data",
                            "type",
                            "unit",
                            "unit_snapshot"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "canceled",
                        "challenged",
                        "complete",
                        "effective",
                        "leaving",
                        "notice_served",
                        "pending",
                        "renewing",
                        "tribunal_decided",
                        "withdrawn"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "no_renewal",
                        "renewal",
                        "rent_increase",
                        null
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "unit"
                              ]
                            },
                            "active": {
                              "type": "boolean"
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "archived": {
                              "type": "boolean"
                            },
                            "available_from": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bathrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "bedrooms": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "building": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "building"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "address": {
                                      "type": "object",
                                      "properties": {
                                        "line1": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "line2": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "city": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "postal_code": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "state": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      }
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "marketing": {
                                      "type": "object",
                                      "properties": {
                                        "featured_photo": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "photos": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "removable": {
                                      "type": "boolean"
                                    },
                                    "single_unit": {
                                      "type": "boolean"
                                    },
                                    "type": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "block_management",
                                        "commercial",
                                        "residential",
                                        "student",
                                        null
                                      ]
                                    },
                                    "unit_fees": {
                                      "type": "object",
                                      "properties": {
                                        "management_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_amount": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "management_fee_discount": {
                                          "type": [
                                            "object",
                                            "null"
                                          ],
                                          "properties": {
                                            "end": {
                                              "type": [
                                                "number",
                                                "null"
                                              ]
                                            },
                                            "percent_off": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "end",
                                            "percent_off"
                                          ]
                                        },
                                        "management_fee_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "percentage",
                                            "fixed",
                                            null
                                          ]
                                        },
                                        "renewal_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "tax_behavior": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "exclusive",
                                            "inclusive",
                                            null
                                          ]
                                        },
                                        "tenant_find_fee": {
                                          "type": [
                                            "number",
                                            "null"
                                          ]
                                        },
                                        "updated_at": {
                                          "type": [
                                            "integer",
                                            "null"
                                          ],
                                          "description": "Must be a Unix timestamp in UTC time."
                                        }
                                      },
                                      "required": [
                                        "management_fee",
                                        "management_fee_amount",
                                        "management_fee_discount",
                                        "management_fee_type",
                                        "renewal_fee",
                                        "tax",
                                        "tax_behavior",
                                        "tenant_find_fee",
                                        "updated_at"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "address",
                                    "currency",
                                    "description",
                                    "marketing",
                                    "name",
                                    "removable",
                                    "single_unit",
                                    "type",
                                    "unit_fees"
                                  ]
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "completion_date": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "contract_address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "currency": {
                              "type": "string"
                            },
                            "currency_options": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "deposit_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_amount": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "rent_tax_percent": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "deposit_amount",
                                  "rent_amount"
                                ]
                              }
                            },
                            "default_deposit": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_price": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "default_rent_tax_rate": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "tax_rate"
                                      ]
                                    },
                                    "active": {
                                      "type": "boolean"
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "description": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "inclusive": {
                                      "type": "boolean"
                                    },
                                    "jurisdiction": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "percentage": {
                                      "type": "number"
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "active",
                                    "country",
                                    "description",
                                    "inclusive",
                                    "jurisdiction",
                                    "name",
                                    "percentage",
                                    "state"
                                  ]
                                },
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "features": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "aspect": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "n",
                                    "s",
                                    "e",
                                    "w",
                                    "ne",
                                    "nw",
                                    "se",
                                    "sw",
                                    "corner",
                                    null
                                  ]
                                },
                                "balcony": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "pet_friendly": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "view": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "min_term": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "fees": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "management_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_amount": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "management_fee_discount": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "end": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "percent_off": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "end",
                                    "percent_off"
                                  ]
                                },
                                "management_fee_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "percentage",
                                    "fixed",
                                    null
                                  ]
                                },
                                "renewal_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "tax_behavior": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "exclusive",
                                    "inclusive",
                                    null
                                  ]
                                },
                                "tenant_find_fee": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "updated_at": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Must be a Unix timestamp in UTC time."
                                }
                              },
                              "required": [
                                "management_fee",
                                "management_fee_amount",
                                "management_fee_discount",
                                "management_fee_type",
                                "renewal_fee",
                                "tax",
                                "tax_behavior",
                                "tenant_find_fee",
                                "updated_at"
                              ]
                            },
                            "furnished": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "floor": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "has_owner": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "compliance": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "epc": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "epc_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "electric_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "electric_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gas_safety_expires_at": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "gas_safety_required": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "maintenance_threshold": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "management_type": {
                              "type": "string",
                              "enum": [
                                "fully_managed",
                                "let_only",
                                "rent_collection"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": "string"
                            },
                            "reference": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "plot_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "rent": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "default": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "maximum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "minimum": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "sales": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "last_purchase_price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "square_foot": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "maintenance",
                                "occupied",
                                "offline",
                                "unmanaged"
                              ]
                            },
                            "under_offer": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "active",
                            "address",
                            "available_from",
                            "bathrooms",
                            "bedrooms",
                            "building",
                            "completion_date",
                            "contract_address",
                            "currency",
                            "currency_options",
                            "default_deposit",
                            "default_price",
                            "default_rent_tax_rate",
                            "fees",
                            "furnished",
                            "floor",
                            "has_owner",
                            "maintenance_threshold",
                            "management_type",
                            "name",
                            "plot_number",
                            "square_foot"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "application",
                    "canceled_at",
                    "completed_at",
                    "source_application",
                    "status",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/program_event_adjustments": {
      "post": {
        "operationId": "loyalty_program_event_adjustments_create",
        "summary": "Create a loyalty program event adjustment",
        "description": "Create a loyalty program event adjustment",
        "tags": [
          "Loyalty Program Event Adjustments"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "loyalty_program_event": {
                    "type": "string",
                    "description": "The loyalty program event ID"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "cancel"
                    ],
                    "description": "The type of adjustment"
                  }
                },
                "required": [
                  "loyalty_program_event",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a loyalty program event adjustment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "loyalty.program_event"
                      ]
                    },
                    "loyalty_program_event": {
                      "type": "string",
                      "description": "The loyalty program event ID"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "succeeded"
                      ],
                      "description": "The status of the adjustment"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "cancel"
                      ],
                      "description": "The type of adjustment"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "loyalty_program_event",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/program_events": {
      "post": {
        "operationId": "loyalty_program_events_create",
        "summary": "Create a loyalty program event",
        "description": "Create a loyalty program event",
        "tags": [
          "Loyalty Program Events"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "earn_rate": {
                    "type": "object",
                    "properties": {
                      "spend_amount": {
                        "type": "number",
                        "description": "The amount spent that will be used to calculate the points earnt."
                      }
                    },
                    "required": [
                      "spend_amount"
                    ]
                  },
                  "expires_at": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "The date and time the points expire."
                  },
                  "loyalty_program": {
                    "type": "string",
                    "description": "The loyalty program ID."
                  },
                  "loyalty_program_override": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "points": {
                        "type": "integer",
                        "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                      }
                    },
                    "required": [
                      "points"
                    ],
                    "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                  },
                  "recipient": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "customer"
                            ]
                          },
                          "customer": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The customer ID"
                          }
                        },
                        "required": [
                          "type",
                          "customer"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "email"
                            ]
                          },
                          "email": {
                            "type": "string",
                            "format": "email",
                            "description": "The email address"
                          }
                        },
                        "required": [
                          "type",
                          "email"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "resident"
                            ]
                          },
                          "resident": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The resident ID"
                          }
                        },
                        "required": [
                          "type",
                          "resident"
                        ]
                      }
                    ]
                  },
                  "statement_descriptor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The statement descriptor. This appears on the customer's statement. If provided, this overrides the statement descriptor set on the loyalty program."
                  }
                },
                "required": [
                  "loyalty_program",
                  "recipient"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a loyalty program event",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "loyalty.program_event"
                      ]
                    },
                    "earn_rate": {
                      "type": "object",
                      "properties": {
                        "spend_amount": {
                          "type": "number",
                          "description": "The amount spent that will be used to calculate the points earnt."
                        }
                      },
                      "required": [
                        "spend_amount"
                      ]
                    },
                    "expires_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the points expire."
                    },
                    "loyalty_program": {
                      "type": "string",
                      "description": "The loyalty program ID."
                    },
                    "loyalty_program_override": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "points": {
                          "type": "integer",
                          "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                        }
                      },
                      "required": [
                        "points"
                      ],
                      "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                    },
                    "recipient": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "customer": {
                              "type": "string",
                              "minLength": 1,
                              "description": "The customer ID"
                            }
                          },
                          "required": [
                            "type",
                            "customer"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "email"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email",
                              "description": "The email address"
                            }
                          },
                          "required": [
                            "type",
                            "email"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "resident"
                              ]
                            },
                            "resident": {
                              "type": "string",
                              "minLength": 1,
                              "description": "The resident ID"
                            }
                          },
                          "required": [
                            "type",
                            "resident"
                          ]
                        }
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor. This appears on the customer's statement. If provided, this overrides the statement descriptor set on the loyalty program."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "expired",
                        "pending",
                        "succeeded"
                      ],
                      "description": "The status of the event."
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The points value of the event."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "expires_at",
                    "loyalty_program",
                    "loyalty_program_override",
                    "recipient",
                    "statement_descriptor",
                    "status",
                    "value"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "loyalty_program_events_list",
        "summary": "List all loyalty program events",
        "description": "List all loyalty program events",
        "tags": [
          "Loyalty Program Events"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "List all loyalty program events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "loyalty.program_event"
                            ]
                          },
                          "earn_rate": {
                            "type": "object",
                            "properties": {
                              "spend_amount": {
                                "type": "number",
                                "description": "The amount spent that will be used to calculate the points earnt."
                              }
                            },
                            "required": [
                              "spend_amount"
                            ]
                          },
                          "expires_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date and time the points expire."
                          },
                          "loyalty_program": {
                            "type": "string",
                            "description": "The loyalty program ID."
                          },
                          "loyalty_program_override": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "points": {
                                "type": "integer",
                                "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                              }
                            },
                            "required": [
                              "points"
                            ],
                            "description": "The number of points to award. If provided, this will override the default points set on the loyalty program."
                          },
                          "recipient": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "customer"
                                    ]
                                  },
                                  "customer": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "The customer ID"
                                  }
                                },
                                "required": [
                                  "type",
                                  "customer"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "email"
                                    ]
                                  },
                                  "email": {
                                    "type": "string",
                                    "format": "email",
                                    "description": "The email address"
                                  }
                                },
                                "required": [
                                  "type",
                                  "email"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "resident"
                                    ]
                                  },
                                  "resident": {
                                    "type": "string",
                                    "minLength": 1,
                                    "description": "The resident ID"
                                  }
                                },
                                "required": [
                                  "type",
                                  "resident"
                                ]
                              }
                            ]
                          },
                          "statement_descriptor": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The statement descriptor. This appears on the customer's statement. If provided, this overrides the statement descriptor set on the loyalty program."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "expired",
                              "pending",
                              "succeeded"
                            ],
                            "description": "The status of the event."
                          },
                          "value": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "The points value of the event."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "expires_at",
                          "loyalty_program",
                          "loyalty_program_override",
                          "recipient",
                          "statement_descriptor",
                          "status",
                          "value"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/programs": {
      "post": {
        "operationId": "loyalty_programs_create",
        "summary": "Create a loyalty program",
        "description": "Create a loyalty program",
        "tags": [
          "Loyalty Programs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "budget": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "maximum_points": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "minimum": 1,
                        "description": "The maximum number of points that can be earned in the time window."
                      },
                      "time_window": {
                        "type": "string",
                        "enum": [
                          "all_time",
                          "year",
                          "month",
                          "week",
                          "day"
                        ],
                        "description": "The time window for the budget."
                      }
                    },
                    "required": [
                      "maximum_points",
                      "time_window"
                    ],
                    "title": "Budget",
                    "description": "The budget object for the loyalty program."
                  },
                  "description": {
                    "type": "string"
                  },
                  "discoverable": {
                    "type": "boolean",
                    "description": "Whether the program is discoverable by residents in the app."
                  },
                  "expires_at": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Must be a Unix timestamp in UTC time."
                  },
                  "max_redemptions": {
                    "type": "number",
                    "minimum": 1
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "priority": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."
                  },
                  "recipient_restriction": {
                    "type": "string",
                    "enum": [
                      "none",
                      "residents"
                    ],
                    "description": "Restrictions on who can receive points. Set to \"none\" for no restrictions (any user in the OneMove network can receive points). Set to \"residents\" to only allow residents in your account to receive points."
                  },
                  "reward": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "points"
                            ]
                          },
                          "points": {
                            "type": "number",
                            "minimum": 1
                          }
                        },
                        "required": [
                          "type",
                          "points"
                        ],
                        "title": "Fixed points",
                        "description": "Grant a fixed number of points to the customer."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "earn_rate"
                            ]
                          },
                          "points_per_unit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "currency_unit": {
                            "type": "integer"
                          },
                          "minimum_spend": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "maximum_points_per_transaction": {
                            "type": "integer",
                            "minimum": 1
                          }
                        },
                        "required": [
                          "type",
                          "points_per_unit",
                          "currency_unit"
                        ],
                        "title": "Earn rate",
                        "description": "Earn a rate of points based on the spend amount."
                      }
                    ]
                  },
                  "statement_descriptor": {
                    "type": "string",
                    "description": "The statement descriptor that will appear on the customer's statement."
                  },
                  "tier": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "rent_on_time",
                      "tenure_milestone",
                      "new_lease",
                      "renewal",
                      "move_in",
                      "referral",
                      "in_person",
                      "one_time",
                      "birthday",
                      "custom"
                    ]
                  }
                },
                "required": [
                  "description",
                  "name",
                  "reward",
                  "statement_descriptor",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Create a loyalty program",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "loyalty.program"
                      ]
                    },
                    "archived": {
                      "type": "boolean",
                      "description": "Whether the program is archived. Archived programs are not visible to customers."
                    },
                    "budget": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "maximum_points": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 1,
                          "description": "The maximum number of points that can be earned in the time window."
                        },
                        "time_window": {
                          "type": "string",
                          "enum": [
                            "all_time",
                            "year",
                            "month",
                            "week",
                            "day"
                          ],
                          "description": "The time window for the budget."
                        }
                      },
                      "required": [
                        "maximum_points",
                        "time_window"
                      ],
                      "title": "Budget",
                      "description": "The budget object for the loyalty program."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the loyalty program. This will be displayed to customers."
                    },
                    "discoverable": {
                      "type": "boolean",
                      "description": "Whether the program is discoverable by residents in the app."
                    },
                    "expires_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the program expires."
                    },
                    "in_person": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "url": {
                          "type": "string",
                          "description": "The URL for the in-person check-in page for the loyalty program."
                        }
                      },
                      "required": [
                        "url"
                      ],
                      "description": "The in_person object for the loyalty program."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the loyalty program. Useful for organising your programmes. Not shown to customers."
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."
                    },
                    "recipient_restriction": {
                      "type": "string",
                      "enum": [
                        "none",
                        "residents"
                      ],
                      "description": "Restrictions on who can receive points. Set to \"none\" for no restrictions (any user in the OneMove network can receive points). Set to \"residents\" to only allow residents in your account to receive points."
                    },
                    "reward": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "points"
                              ]
                            },
                            "points": {
                              "type": "number",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points"
                          ],
                          "title": "Fixed points",
                          "description": "Grant a fixed number of points to the customer."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "earn_rate"
                              ]
                            },
                            "points_per_unit": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "currency_unit": {
                              "type": "integer"
                            },
                            "minimum_spend": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "maximum_points_per_transaction": {
                              "type": "integer",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points_per_unit",
                            "currency_unit"
                          ],
                          "title": "Earn rate",
                          "description": "Earn a rate of points based on the spend amount."
                        }
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor that will appear on the customer's statement."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "expired",
                        "consumed"
                      ],
                      "description": "The status of the loyalty program."
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The tier object for the loyalty program."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "rent_on_time",
                        "tenure_milestone",
                        "new_lease",
                        "renewal",
                        "move_in",
                        "referral",
                        "in_person",
                        "one_time",
                        "birthday",
                        "custom"
                      ],
                      "description": "The type of the loyalty program."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "archived",
                    "budget",
                    "description",
                    "discoverable",
                    "expires_at",
                    "in_person",
                    "name",
                    "recipient_restriction",
                    "reward",
                    "statement_descriptor",
                    "status",
                    "tier",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "loyalty_programs_list",
        "summary": "List all loyalty programs",
        "description": "List all loyalty programs",
        "tags": [
          "Loyalty Programs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A dictionary with a data property that contains an array of up to limit loyalty programs. Each entry in the array is a separate loyalty program object. If no more loyalty programs are available, the resulting array will be empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "loyalty.program"
                            ]
                          },
                          "archived": {
                            "type": "boolean",
                            "description": "Whether the program is archived. Archived programs are not visible to customers."
                          },
                          "budget": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "maximum_points": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "minimum": 1,
                                "description": "The maximum number of points that can be earned in the time window."
                              },
                              "time_window": {
                                "type": "string",
                                "enum": [
                                  "all_time",
                                  "year",
                                  "month",
                                  "week",
                                  "day"
                                ],
                                "description": "The time window for the budget."
                              }
                            },
                            "required": [
                              "maximum_points",
                              "time_window"
                            ],
                            "title": "Budget",
                            "description": "The budget object for the loyalty program."
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The description of the loyalty program. This will be displayed to customers."
                          },
                          "discoverable": {
                            "type": "boolean",
                            "description": "Whether the program is discoverable by residents in the app."
                          },
                          "expires_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "The date and time the program expires."
                          },
                          "in_person": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "The URL for the in-person check-in page for the loyalty program."
                              }
                            },
                            "required": [
                              "url"
                            ],
                            "description": "The in_person object for the loyalty program."
                          },
                          "name": {
                            "type": "string",
                            "description": "The name of the loyalty program. Useful for organising your programmes. Not shown to customers."
                          },
                          "priority": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."
                          },
                          "recipient_restriction": {
                            "type": "string",
                            "enum": [
                              "none",
                              "residents"
                            ],
                            "description": "Restrictions on who can receive points. Set to \"none\" for no restrictions (any user in the OneMove network can receive points). Set to \"residents\" to only allow residents in your account to receive points."
                          },
                          "reward": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "points"
                                    ]
                                  },
                                  "points": {
                                    "type": "number",
                                    "minimum": 1
                                  }
                                },
                                "required": [
                                  "type",
                                  "points"
                                ],
                                "title": "Fixed points",
                                "description": "Grant a fixed number of points to the customer."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "earn_rate"
                                    ]
                                  },
                                  "points_per_unit": {
                                    "type": "integer",
                                    "minimum": 1
                                  },
                                  "currency_unit": {
                                    "type": "integer"
                                  },
                                  "minimum_spend": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "maximum_points_per_transaction": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                },
                                "required": [
                                  "type",
                                  "points_per_unit",
                                  "currency_unit"
                                ],
                                "title": "Earn rate",
                                "description": "Earn a rate of points based on the spend amount."
                              }
                            ]
                          },
                          "statement_descriptor": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The statement descriptor that will appear on the customer's statement."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "expired",
                              "consumed"
                            ],
                            "description": "The status of the loyalty program."
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The tier object for the loyalty program."
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "rent_on_time",
                              "tenure_milestone",
                              "new_lease",
                              "renewal",
                              "move_in",
                              "referral",
                              "in_person",
                              "one_time",
                              "birthday",
                              "custom"
                            ],
                            "description": "The type of the loyalty program."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "archived",
                          "budget",
                          "description",
                          "discoverable",
                          "expires_at",
                          "in_person",
                          "name",
                          "recipient_restriction",
                          "reward",
                          "statement_descriptor",
                          "status",
                          "tier",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/programs/{id}": {
      "get": {
        "operationId": "loyalty_programs_retrieve",
        "summary": "Retrieve a loyalty program",
        "description": "Retrieve a loyalty program",
        "tags": [
          "Loyalty Programs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a loyalty program",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "loyalty.program"
                      ]
                    },
                    "archived": {
                      "type": "boolean",
                      "description": "Whether the program is archived. Archived programs are not visible to customers."
                    },
                    "budget": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "maximum_points": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 1,
                          "description": "The maximum number of points that can be earned in the time window."
                        },
                        "time_window": {
                          "type": "string",
                          "enum": [
                            "all_time",
                            "year",
                            "month",
                            "week",
                            "day"
                          ],
                          "description": "The time window for the budget."
                        }
                      },
                      "required": [
                        "maximum_points",
                        "time_window"
                      ],
                      "title": "Budget",
                      "description": "The budget object for the loyalty program."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the loyalty program. This will be displayed to customers."
                    },
                    "discoverable": {
                      "type": "boolean",
                      "description": "Whether the program is discoverable by residents in the app."
                    },
                    "expires_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the program expires."
                    },
                    "in_person": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "url": {
                          "type": "string",
                          "description": "The URL for the in-person check-in page for the loyalty program."
                        }
                      },
                      "required": [
                        "url"
                      ],
                      "description": "The in_person object for the loyalty program."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the loyalty program. Useful for organising your programmes. Not shown to customers."
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."
                    },
                    "recipient_restriction": {
                      "type": "string",
                      "enum": [
                        "none",
                        "residents"
                      ],
                      "description": "Restrictions on who can receive points. Set to \"none\" for no restrictions (any user in the OneMove network can receive points). Set to \"residents\" to only allow residents in your account to receive points."
                    },
                    "reward": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "points"
                              ]
                            },
                            "points": {
                              "type": "number",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points"
                          ],
                          "title": "Fixed points",
                          "description": "Grant a fixed number of points to the customer."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "earn_rate"
                              ]
                            },
                            "points_per_unit": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "currency_unit": {
                              "type": "integer"
                            },
                            "minimum_spend": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "maximum_points_per_transaction": {
                              "type": "integer",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points_per_unit",
                            "currency_unit"
                          ],
                          "title": "Earn rate",
                          "description": "Earn a rate of points based on the spend amount."
                        }
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor that will appear on the customer's statement."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "expired",
                        "consumed"
                      ],
                      "description": "The status of the loyalty program."
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The tier object for the loyalty program."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "rent_on_time",
                        "tenure_milestone",
                        "new_lease",
                        "renewal",
                        "move_in",
                        "referral",
                        "in_person",
                        "one_time",
                        "birthday",
                        "custom"
                      ],
                      "description": "The type of the loyalty program."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "archived",
                    "budget",
                    "description",
                    "discoverable",
                    "expires_at",
                    "in_person",
                    "name",
                    "recipient_restriction",
                    "reward",
                    "statement_descriptor",
                    "status",
                    "tier",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "loyalty_programs_update",
        "summary": "Update a loyalty program",
        "description": "Update a loyalty program",
        "tags": [
          "Loyalty Programs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "archived": {
                    "type": "boolean"
                  },
                  "budget": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "maximum_points": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "minimum": 1,
                        "description": "The maximum number of points that can be earned in the time window."
                      },
                      "time_window": {
                        "type": "string",
                        "enum": [
                          "all_time",
                          "year",
                          "month",
                          "week",
                          "day"
                        ],
                        "description": "The time window for the budget."
                      }
                    },
                    "required": [
                      "maximum_points",
                      "time_window"
                    ],
                    "title": "Budget",
                    "description": "The budget object for the loyalty program."
                  },
                  "description": {
                    "type": "string"
                  },
                  "discoverable": {
                    "type": "boolean"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "name": {
                    "type": "string"
                  },
                  "statement_descriptor": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tier": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[a-zA-Z0-9_]+$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Update a loyalty program",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "loyalty.program"
                      ]
                    },
                    "archived": {
                      "type": "boolean",
                      "description": "Whether the program is archived. Archived programs are not visible to customers."
                    },
                    "budget": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "maximum_points": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 1,
                          "description": "The maximum number of points that can be earned in the time window."
                        },
                        "time_window": {
                          "type": "string",
                          "enum": [
                            "all_time",
                            "year",
                            "month",
                            "week",
                            "day"
                          ],
                          "description": "The time window for the budget."
                        }
                      },
                      "required": [
                        "maximum_points",
                        "time_window"
                      ],
                      "title": "Budget",
                      "description": "The budget object for the loyalty program."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The description of the loyalty program. This will be displayed to customers."
                    },
                    "discoverable": {
                      "type": "boolean",
                      "description": "Whether the program is discoverable by residents in the app."
                    },
                    "expires_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "The date and time the program expires."
                    },
                    "in_person": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "url": {
                          "type": "string",
                          "description": "The URL for the in-person check-in page for the loyalty program."
                        }
                      },
                      "required": [
                        "url"
                      ],
                      "description": "The in_person object for the loyalty program."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the loyalty program. Useful for organising your programmes. Not shown to customers."
                    },
                    "priority": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100,
                      "description": "The priority of for sorting loyalty programs. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100."
                    },
                    "recipient_restriction": {
                      "type": "string",
                      "enum": [
                        "none",
                        "residents"
                      ],
                      "description": "Restrictions on who can receive points. Set to \"none\" for no restrictions (any user in the OneMove network can receive points). Set to \"residents\" to only allow residents in your account to receive points."
                    },
                    "reward": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "points"
                              ]
                            },
                            "points": {
                              "type": "number",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points"
                          ],
                          "title": "Fixed points",
                          "description": "Grant a fixed number of points to the customer."
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "earn_rate"
                              ]
                            },
                            "points_per_unit": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "currency_unit": {
                              "type": "integer"
                            },
                            "minimum_spend": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "maximum_points_per_transaction": {
                              "type": "integer",
                              "minimum": 1
                            }
                          },
                          "required": [
                            "type",
                            "points_per_unit",
                            "currency_unit"
                          ],
                          "title": "Earn rate",
                          "description": "Earn a rate of points based on the spend amount."
                        }
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The statement descriptor that will appear on the customer's statement."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "expired",
                        "consumed"
                      ],
                      "description": "The status of the loyalty program."
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The tier object for the loyalty program."
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "rent_on_time",
                        "tenure_milestone",
                        "new_lease",
                        "renewal",
                        "move_in",
                        "referral",
                        "in_person",
                        "one_time",
                        "birthday",
                        "custom"
                      ],
                      "description": "The type of the loyalty program."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "archived",
                    "budget",
                    "description",
                    "discoverable",
                    "expires_at",
                    "in_person",
                    "name",
                    "recipient_restriction",
                    "reward",
                    "statement_descriptor",
                    "status",
                    "tier",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/residents": {
      "post": {
        "operationId": "residents_create",
        "summary": "Create a resident",
        "description": "Create a resident",
        "tags": [
          "Residents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "building": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "tier": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  }
                },
                "required": [
                  "building",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created resident.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "resident"
                      ]
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "building",
                    "email",
                    "name",
                    "tier",
                    "status"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "residents_list",
        "summary": "List all residents",
        "description": "List all residents",
        "tags": [
          "Residents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A dictionary with a data property that contains an array of up to limit residents. Each entry in the array is a separate resident object. If no more residents are available, the resulting array will be empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "resident"
                            ]
                          },
                          "building": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tier": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "building",
                          "email",
                          "name",
                          "tier",
                          "status"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/loyalty/residents/{id}": {
      "get": {
        "operationId": "residents_retrieve",
        "summary": "Retrieve a resident",
        "description": "Retrieve a resident",
        "tags": [
          "Residents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Retrieve a resident",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "resident"
                      ]
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "building",
                    "email",
                    "name",
                    "tier",
                    "status"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "residents_update",
        "summary": "Update a resident",
        "description": "Update a resident",
        "tags": [
          "Residents"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "building": {
                    "type": "string"
                  },
                  "inactive": {
                    "type": "object",
                    "properties": {
                      "expire_points": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "expire_points"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "tier": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "pattern": "^[a-zA-Z0-9_]+$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "inactive"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated resident.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "resident"
                      ]
                    },
                    "building": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tier": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "inactive"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "building",
                    "email",
                    "name",
                    "tier",
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts": {
      "post": {
        "operationId": "owner_payouts_create",
        "summary": "Create an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual"
                    ]
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "end": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      },
                      "start": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      }
                    },
                    "required": [
                      "end",
                      "start"
                    ]
                  },
                  "statement_descriptor": {
                    "type": "string"
                  },
                  "send_email": {
                    "type": "boolean"
                  },
                  "options": {
                    "type": "object",
                    "properties": {
                      "apply_unit_restriction": {
                        "type": "boolean"
                      }
                    }
                  },
                  "owner": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  }
                },
                "required": [
                  "owner"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "owner_payouts_list",
        "summary": "List all owner payouts",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of owner payouts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "owner_payout"
                            ]
                          },
                          "amount": {
                            "type": "number"
                          },
                          "approved_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "canceled_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "client_secret": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                            "example": "gbp"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "destination": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "external_account"
                                    ]
                                  },
                                  "available_payout_methods": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "bank_account": {
                                    "type": "object",
                                    "properties": {
                                      "account_holder_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account_holder_type": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "individual",
                                          "company",
                                          null
                                        ]
                                      },
                                      "bank_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string",
                                        "enum": [
                                          "aud",
                                          "eur",
                                          "gbp",
                                          "bnd",
                                          "cny",
                                          "hkd",
                                          "kwd",
                                          "ils",
                                          "inr",
                                          "myr",
                                          "mur",
                                          "mxn",
                                          "nzd",
                                          "omr",
                                          "qar",
                                          "sar",
                                          "sgd",
                                          "sek",
                                          "thb",
                                          "try",
                                          "usd",
                                          "aed",
                                          "uyu"
                                        ]
                                      },
                                      "last4": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "routing_number": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "swift_bic": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_holder_name",
                                      "account_holder_type",
                                      "bank_name",
                                      "country",
                                      "currency",
                                      "last4",
                                      "routing_number"
                                    ]
                                  },
                                  "confirmation_of_payee": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "status": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "enum": [
                                          "awaiting_acknowledgement",
                                          "confirmed",
                                          "uninitiated",
                                          null
                                        ]
                                      }
                                    },
                                    "required": [
                                      "status"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "new",
                                      "errored"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "bank_account"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "available_payout_methods",
                                  "confirmation_of_payee",
                                  "status",
                                  "type"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "failed_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "failure_code": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "failure_message": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "failure_owner_balance_transaction": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "hosted_payment_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "last_approval_error": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "type"
                            ]
                          },
                          "last_outbound_payment_error": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "message",
                              "type"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "method": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "automatic",
                              "manual",
                              null
                            ]
                          },
                          "net": {
                            "type": "number"
                          },
                          "number": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "owner": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "owner"
                                    ]
                                  },
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "balance": {
                                    "type": "number",
                                    "default": 0
                                  },
                                  "business_type": {
                                    "type": "string",
                                    "enum": [
                                      "individual",
                                      "company"
                                    ]
                                  },
                                  "company": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "email": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "tax_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "vat_id": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "address",
                                      "email",
                                      "name",
                                      "phone",
                                      "tax_id",
                                      "vat_id"
                                    ]
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "external_account": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "description": "Unique identifier for the object."
                                          },
                                          "created": {
                                            "type": "number",
                                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                          },
                                          "account": {
                                            "type": "string",
                                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                          },
                                          "deleted": {
                                            "type": "boolean",
                                            "default": false,
                                            "description": "Only returned if the object has been deleted."
                                          },
                                          "object": {
                                            "type": "string",
                                            "enum": [
                                              "external_account"
                                            ]
                                          },
                                          "available_payout_methods": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "bank_account": {
                                            "type": "object",
                                            "properties": {
                                              "account_holder_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "account_holder_type": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "enum": [
                                                  "individual",
                                                  "company",
                                                  null
                                                ]
                                              },
                                              "bank_name": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "country": {
                                                "type": "string"
                                              },
                                              "currency": {
                                                "type": "string",
                                                "enum": [
                                                  "aud",
                                                  "eur",
                                                  "gbp",
                                                  "bnd",
                                                  "cny",
                                                  "hkd",
                                                  "kwd",
                                                  "ils",
                                                  "inr",
                                                  "myr",
                                                  "mur",
                                                  "mxn",
                                                  "nzd",
                                                  "omr",
                                                  "qar",
                                                  "sar",
                                                  "sgd",
                                                  "sek",
                                                  "thb",
                                                  "try",
                                                  "usd",
                                                  "aed",
                                                  "uyu"
                                                ]
                                              },
                                              "last4": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "routing_number": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              },
                                              "swift_bic": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "account_holder_name",
                                              "account_holder_type",
                                              "bank_name",
                                              "country",
                                              "currency",
                                              "last4",
                                              "routing_number"
                                            ]
                                          },
                                          "confirmation_of_payee": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "properties": {
                                              "status": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ],
                                                "enum": [
                                                  "awaiting_acknowledgement",
                                                  "confirmed",
                                                  "uninitiated",
                                                  null
                                                ]
                                              }
                                            },
                                            "required": [
                                              "status"
                                            ]
                                          },
                                          "metadata": {
                                            "type": [
                                              "object",
                                              "null"
                                            ],
                                            "additionalProperties": {
                                              "type": "string"
                                            },
                                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                          },
                                          "status": {
                                            "type": "string",
                                            "enum": [
                                              "new",
                                              "errored"
                                            ]
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "bank_account"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "created",
                                          "object",
                                          "available_payout_methods",
                                          "confirmation_of_payee",
                                          "status",
                                          "type"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      },
                                      {
                                        "type": "string"
                                      }
                                    ]
                                  },
                                  "individual": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "owner.person"
                                        ]
                                      },
                                      "address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "dob": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "email": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "format": "email",
                                        "description": "The individual’s email address."
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "relationship": {
                                        "type": "object",
                                        "properties": {
                                          "director": {
                                            "type": [
                                              "boolean",
                                              "null"
                                            ]
                                          },
                                          "executive": {
                                            "type": [
                                              "boolean",
                                              "null"
                                            ]
                                          },
                                          "owner": {
                                            "type": [
                                              "boolean",
                                              "null"
                                            ]
                                          },
                                          "percent_ownership": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 0,
                                            "maximum": 100
                                          },
                                          "representative": {
                                            "type": [
                                              "boolean",
                                              "null"
                                            ]
                                          },
                                          "title": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "director",
                                          "executive",
                                          "owner",
                                          "percent_ownership",
                                          "representative",
                                          "title"
                                        ]
                                      },
                                      "title": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "verification": {
                                        "type": "object",
                                        "properties": {
                                          "identity_check": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "status": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "enum": [
                                              "unverified",
                                              "pending",
                                              "verified",
                                              "failed",
                                              "requires_input",
                                              null
                                            ]
                                          }
                                        },
                                        "required": [
                                          "identity_check",
                                          "status"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "dob",
                                      "email",
                                      "first_name",
                                      "last_name",
                                      "phone",
                                      "relationship",
                                      "title",
                                      "verification"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "payouts_enabled": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "settings": {
                                    "type": "object",
                                    "properties": {
                                      "account_collections": {
                                        "type": "object",
                                        "properties": {
                                          "platform_fee": {
                                            "type": "number",
                                            "default": 0
                                          }
                                        }
                                      },
                                      "maintenance": {
                                        "type": "object",
                                        "properties": {
                                          "issue_categories": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "issue_preferred_categories": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "issue_categories",
                                          "issue_preferred_categories"
                                        ]
                                      },
                                      "payout_receipts": {
                                        "type": "object",
                                        "properties": {
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "default": []
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "send_emails": {
                                            "type": "boolean",
                                            "default": true
                                          },
                                          "statement_descriptor": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "email_to",
                                          "statement_descriptor"
                                        ]
                                      },
                                      "payout_schedule": {
                                        "type": "object",
                                        "properties": {
                                          "interval": {
                                            "type": "string",
                                            "enum": [
                                              "daily",
                                              "weekly",
                                              "manual",
                                              "monthly",
                                              "quarterly",
                                              "yearly"
                                            ]
                                          },
                                          "monthly_anchor": {
                                            "type": "number",
                                            "default": 31
                                          },
                                          "weekly_anchor": {
                                            "type": "number",
                                            "default": 5
                                          }
                                        },
                                        "required": [
                                          "interval"
                                        ]
                                      },
                                      "payouts": {
                                        "type": "object",
                                        "properties": {
                                          "automatic_approval": {
                                            "type": "boolean",
                                            "default": false
                                          },
                                          "instant_payouts": {
                                            "type": "boolean",
                                            "default": false
                                          },
                                          "negative_payouts": {
                                            "type": "boolean",
                                            "default": false
                                          },
                                          "transaction_grouping": {
                                            "type": "string",
                                            "enum": [
                                              "all",
                                              "per_unit"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "transaction_grouping"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_collections",
                                      "maintenance",
                                      "payout_receipts",
                                      "payout_schedule",
                                      "payouts"
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "complete",
                                      "incomplete",
                                      "disabled",
                                      "archived"
                                    ]
                                  },
                                  "tax_residency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "landlord",
                                      "leaseholder",
                                      "platform",
                                      "supplier"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "address",
                                  "business_type",
                                  "company",
                                  "country",
                                  "email",
                                  "external_account",
                                  "individual",
                                  "name",
                                  "settings",
                                  "status",
                                  "tax_residency",
                                  "type"
                                ]
                              }
                            ]
                          },
                          "owner_balance_transaction": {
                            "anyOf": [
                              {
                                "type": "null"
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "owner_balance_transaction"
                                    ]
                                  },
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "available_on": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "amount",
                                  "available_on",
                                  "currency",
                                  "description",
                                  "type"
                                ]
                              }
                            ]
                          },
                          "owner_non_resident_tax": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "deduction": {
                                "type": "number"
                              },
                              "details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "certificate": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "certificate_date": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "status": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "exempt",
                                      "resident",
                                      "taxable",
                                      null
                                    ]
                                  }
                                },
                                "required": [
                                  "certificate",
                                  "certificate_date",
                                  "country",
                                  "status"
                                ]
                              },
                              "taxable_amount": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "deduction",
                              "details",
                              "taxable_amount"
                            ]
                          },
                          "owner_tax_residency": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "paid_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "payment_run": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "period": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "adjustment_amount": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "adjustment_explanations": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "adjustment_amount": {
                                      "type": "number"
                                    },
                                    "amount": {
                                      "type": "number"
                                    },
                                    "daily_rate": {
                                      "type": "number"
                                    },
                                    "days": {
                                      "type": "number"
                                    },
                                    "description": {
                                      "type": "string"
                                    },
                                    "original_amount": {
                                      "type": "number"
                                    },
                                    "period_breakdown": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "days": {
                                            "type": "number"
                                          },
                                          "period_start": {
                                            "type": "integer",
                                            "description": "Must be a Unix timestamp in UTC time."
                                          },
                                          "period_end": {
                                            "type": "integer",
                                            "description": "Must be a Unix timestamp in UTC time."
                                          },
                                          "prorated_amount": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "days",
                                          "period_start",
                                          "period_end",
                                          "prorated_amount"
                                        ]
                                      }
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "total_days": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "adjustment_amount",
                                    "amount",
                                    "daily_rate",
                                    "days",
                                    "description",
                                    "original_amount",
                                    "period_breakdown",
                                    "period_end",
                                    "period_start",
                                    "total_days"
                                  ]
                                }
                              },
                              "end": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "start": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Must be a Unix timestamp in UTC time."
                              }
                            },
                            "required": [
                              "adjustment_amount",
                              "adjustment_explanations",
                              "end",
                              "start"
                            ]
                          },
                          "statement_descriptor": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "pending",
                              "in_transit",
                              "requires_payment",
                              "paid",
                              "failed",
                              "canceled"
                            ]
                          },
                          "transaction": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "type": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "landlord",
                              "leaseholder",
                              "supplier",
                              "owner",
                              null
                            ]
                          },
                          "unit": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "approved_at",
                          "canceled_at",
                          "client_secret",
                          "currency",
                          "description",
                          "destination",
                          "failed_at",
                          "failure_code",
                          "failure_message",
                          "failure_owner_balance_transaction",
                          "hosted_payment_url",
                          "last_approval_error",
                          "last_outbound_payment_error",
                          "method",
                          "net",
                          "number",
                          "owner",
                          "owner_balance_transaction",
                          "owner_non_resident_tax",
                          "owner_tax_residency",
                          "paid_at",
                          "payment_run",
                          "period",
                          "statement_descriptor",
                          "status",
                          "transaction",
                          "type",
                          "unit"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/preview": {
      "post": {
        "operationId": "owner_payouts_preview",
        "summary": "Preview an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual"
                    ]
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "end": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      },
                      "start": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      }
                    },
                    "required": [
                      "end",
                      "start"
                    ]
                  },
                  "statement_descriptor": {
                    "type": "string"
                  },
                  "send_email": {
                    "type": "boolean"
                  },
                  "options": {
                    "type": "object",
                    "properties": {
                      "apply_unit_restriction": {
                        "type": "boolean"
                      }
                    }
                  },
                  "owner": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  }
                },
                "required": [
                  "owner"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the previewed owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}": {
      "get": {
        "operationId": "owner_payouts_retrieve",
        "summary": "Retrieve an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/approve": {
      "post": {
        "operationId": "owner_payouts_approve",
        "summary": "Approve an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual"
                    ]
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "end": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      },
                      "start": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      }
                    },
                    "required": [
                      "end",
                      "start"
                    ]
                  },
                  "statement_descriptor": {
                    "type": "string"
                  },
                  "send_email": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the approved owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/approve/preview": {
      "post": {
        "operationId": "owner_payouts_preview_approve",
        "summary": "Preview an owner payout approval",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual"
                    ]
                  },
                  "period": {
                    "type": "object",
                    "properties": {
                      "end": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      },
                      "start": {
                        "type": "integer",
                        "description": "Must be a Unix timestamp in UTC time."
                      }
                    },
                    "required": [
                      "end",
                      "start"
                    ]
                  },
                  "statement_descriptor": {
                    "type": "string"
                  },
                  "send_email": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the previewed owner payout approval.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/cancel": {
      "post": {
        "operationId": "owner_payouts_cancel",
        "summary": "Cancel an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the cancelled owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/mark_failed": {
      "post": {
        "operationId": "owner_payouts_mark_failed",
        "summary": "Mark an owner payout as failed",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "failure_code": {
                    "type": "string",
                    "enum": [
                      "no_account"
                    ]
                  },
                  "failure_message": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the marked failed owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/mark_paid": {
      "post": {
        "operationId": "owner_payouts_mark_paid",
        "summary": "Mark an owner payout as paid",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the marked paid owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/pay": {
      "post": {
        "operationId": "owner_payouts_pay",
        "summary": "Pay an owner payout",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the paid owner payout.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/owner_payouts/{id}/send_receipt": {
      "post": {
        "operationId": "owner_payouts_send_receipt",
        "summary": "Send an owner payout receipt",
        "description": "",
        "tags": [
          "Owner Payouts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the sent owner payout receipt.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "owner_payout"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "canceled_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "destination": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_account"
                              ]
                            },
                            "available_payout_methods": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bank_account": {
                              "type": "object",
                              "properties": {
                                "account_holder_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "account_holder_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "individual",
                                    "company",
                                    null
                                  ]
                                },
                                "bank_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "aud",
                                    "eur",
                                    "gbp",
                                    "bnd",
                                    "cny",
                                    "hkd",
                                    "kwd",
                                    "ils",
                                    "inr",
                                    "myr",
                                    "mur",
                                    "mxn",
                                    "nzd",
                                    "omr",
                                    "qar",
                                    "sar",
                                    "sgd",
                                    "sek",
                                    "thb",
                                    "try",
                                    "usd",
                                    "aed",
                                    "uyu"
                                  ]
                                },
                                "last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "routing_number": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "swift_bic": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "account_holder_name",
                                "account_holder_type",
                                "bank_name",
                                "country",
                                "currency",
                                "last4",
                                "routing_number"
                              ]
                            },
                            "confirmation_of_payee": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "status": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "awaiting_acknowledgement",
                                    "confirmed",
                                    "uninitiated",
                                    null
                                  ]
                                }
                              },
                              "required": [
                                "status"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "new",
                                "errored"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "bank_account"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "available_payout_methods",
                            "confirmation_of_payee",
                            "status",
                            "type"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "failed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "failure_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failure_owner_balance_transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "hosted_payment_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "last_approval_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "last_outbound_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "message": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "net": {
                      "type": "number"
                    },
                    "number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "owner": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner"
                              ]
                            },
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "balance": {
                              "type": "number",
                              "default": 0
                            },
                            "business_type": {
                              "type": "string",
                              "enum": [
                                "individual",
                                "company"
                              ]
                            },
                            "company": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tax_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vat_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address",
                                "email",
                                "name",
                                "phone",
                                "tax_id",
                                "vat_id"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "external_account": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier for the object."
                                    },
                                    "created": {
                                      "type": "number",
                                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                    },
                                    "account": {
                                      "type": "string",
                                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                    },
                                    "deleted": {
                                      "type": "boolean",
                                      "default": false,
                                      "description": "Only returned if the object has been deleted."
                                    },
                                    "object": {
                                      "type": "string",
                                      "enum": [
                                        "external_account"
                                      ]
                                    },
                                    "available_payout_methods": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "bank_account": {
                                      "type": "object",
                                      "properties": {
                                        "account_holder_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "account_holder_type": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "individual",
                                            "company",
                                            null
                                          ]
                                        },
                                        "bank_name": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "country": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string",
                                          "enum": [
                                            "aud",
                                            "eur",
                                            "gbp",
                                            "bnd",
                                            "cny",
                                            "hkd",
                                            "kwd",
                                            "ils",
                                            "inr",
                                            "myr",
                                            "mur",
                                            "mxn",
                                            "nzd",
                                            "omr",
                                            "qar",
                                            "sar",
                                            "sgd",
                                            "sek",
                                            "thb",
                                            "try",
                                            "usd",
                                            "aed",
                                            "uyu"
                                          ]
                                        },
                                        "last4": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "routing_number": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "swift_bic": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "account_holder_name",
                                        "account_holder_type",
                                        "bank_name",
                                        "country",
                                        "currency",
                                        "last4",
                                        "routing_number"
                                      ]
                                    },
                                    "confirmation_of_payee": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "status": {
                                          "type": [
                                            "string",
                                            "null"
                                          ],
                                          "enum": [
                                            "awaiting_acknowledgement",
                                            "confirmed",
                                            "uninitiated",
                                            null
                                          ]
                                        }
                                      },
                                      "required": [
                                        "status"
                                      ]
                                    },
                                    "metadata": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "additionalProperties": {
                                        "type": "string"
                                      },
                                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "new",
                                        "errored"
                                      ]
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "bank_account"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "created",
                                    "object",
                                    "available_payout_methods",
                                    "confirmation_of_payee",
                                    "status",
                                    "type"
                                  ]
                                },
                                {
                                  "type": "null"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "individual": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "owner.person"
                                  ]
                                },
                                "address": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "dob": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "email": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email",
                                  "description": "The individual’s email address."
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "relationship": {
                                  "type": "object",
                                  "properties": {
                                    "director": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "executive": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "owner": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "percent_ownership": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 0,
                                      "maximum": 100
                                    },
                                    "representative": {
                                      "type": [
                                        "boolean",
                                        "null"
                                      ]
                                    },
                                    "title": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "director",
                                    "executive",
                                    "owner",
                                    "percent_ownership",
                                    "representative",
                                    "title"
                                  ]
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "identity_check": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "status": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "unverified",
                                        "pending",
                                        "verified",
                                        "failed",
                                        "requires_input",
                                        null
                                      ]
                                    }
                                  },
                                  "required": [
                                    "identity_check",
                                    "status"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "dob",
                                "email",
                                "first_name",
                                "last_name",
                                "phone",
                                "relationship",
                                "title",
                                "verification"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "payouts_enabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "account_collections": {
                                  "type": "object",
                                  "properties": {
                                    "platform_fee": {
                                      "type": "number",
                                      "default": 0
                                    }
                                  }
                                },
                                "maintenance": {
                                  "type": "object",
                                  "properties": {
                                    "issue_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "issue_preferred_categories": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "issue_categories",
                                    "issue_preferred_categories"
                                  ]
                                },
                                "payout_receipts": {
                                  "type": "object",
                                  "properties": {
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      },
                                      "default": []
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "send_emails": {
                                      "type": "boolean",
                                      "default": true
                                    },
                                    "statement_descriptor": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email_to",
                                    "statement_descriptor"
                                  ]
                                },
                                "payout_schedule": {
                                  "type": "object",
                                  "properties": {
                                    "interval": {
                                      "type": "string",
                                      "enum": [
                                        "daily",
                                        "weekly",
                                        "manual",
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                      ]
                                    },
                                    "monthly_anchor": {
                                      "type": "number",
                                      "default": 31
                                    },
                                    "weekly_anchor": {
                                      "type": "number",
                                      "default": 5
                                    }
                                  },
                                  "required": [
                                    "interval"
                                  ]
                                },
                                "payouts": {
                                  "type": "object",
                                  "properties": {
                                    "automatic_approval": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "instant_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "negative_payouts": {
                                      "type": "boolean",
                                      "default": false
                                    },
                                    "transaction_grouping": {
                                      "type": "string",
                                      "enum": [
                                        "all",
                                        "per_unit"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "transaction_grouping"
                                  ]
                                }
                              },
                              "required": [
                                "account_collections",
                                "maintenance",
                                "payout_receipts",
                                "payout_schedule",
                                "payouts"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "complete",
                                "incomplete",
                                "disabled",
                                "archived"
                              ]
                            },
                            "tax_residency": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "landlord",
                                "leaseholder",
                                "platform",
                                "supplier"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "business_type",
                            "company",
                            "country",
                            "email",
                            "external_account",
                            "individual",
                            "name",
                            "settings",
                            "status",
                            "tax_residency",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_balance_transaction": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "owner_balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "type"
                          ]
                        }
                      ]
                    },
                    "owner_non_resident_tax": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deduction": {
                          "type": "number"
                        },
                        "details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "certificate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "certificate_date": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "status": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "exempt",
                                "resident",
                                "taxable",
                                null
                              ]
                            }
                          },
                          "required": [
                            "certificate",
                            "certificate_date",
                            "country",
                            "status"
                          ]
                        },
                        "taxable_amount": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "deduction",
                        "details",
                        "taxable_amount"
                      ]
                    },
                    "owner_tax_residency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "payment_run": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "period": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "adjustment_amount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "adjustment_explanations": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "adjustment_amount": {
                                "type": "number"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "daily_rate": {
                                "type": "number"
                              },
                              "days": {
                                "type": "number"
                              },
                              "description": {
                                "type": "string"
                              },
                              "original_amount": {
                                "type": "number"
                              },
                              "period_breakdown": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "days": {
                                      "type": "number"
                                    },
                                    "period_start": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "period_end": {
                                      "type": "integer",
                                      "description": "Must be a Unix timestamp in UTC time."
                                    },
                                    "prorated_amount": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "days",
                                    "period_start",
                                    "period_end",
                                    "prorated_amount"
                                  ]
                                }
                              },
                              "period_end": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "period_start": {
                                "type": "integer",
                                "description": "Must be a Unix timestamp in UTC time."
                              },
                              "total_days": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "id",
                              "adjustment_amount",
                              "amount",
                              "daily_rate",
                              "days",
                              "description",
                              "original_amount",
                              "period_breakdown",
                              "period_end",
                              "period_start",
                              "total_days"
                            ]
                          }
                        },
                        "end": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        },
                        "start": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "Must be a Unix timestamp in UTC time."
                        }
                      },
                      "required": [
                        "adjustment_amount",
                        "adjustment_explanations",
                        "end",
                        "start"
                      ]
                    },
                    "statement_descriptor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "pending",
                        "in_transit",
                        "requires_payment",
                        "paid",
                        "failed",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "landlord",
                        "leaseholder",
                        "supplier",
                        "owner",
                        null
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "canceled_at",
                    "client_secret",
                    "currency",
                    "description",
                    "destination",
                    "failed_at",
                    "failure_code",
                    "failure_message",
                    "failure_owner_balance_transaction",
                    "hosted_payment_url",
                    "last_approval_error",
                    "last_outbound_payment_error",
                    "method",
                    "net",
                    "number",
                    "owner",
                    "owner_balance_transaction",
                    "owner_non_resident_tax",
                    "owner_tax_residency",
                    "paid_at",
                    "payment_run",
                    "period",
                    "statement_descriptor",
                    "status",
                    "transaction",
                    "type",
                    "unit"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_runs": {
      "post": {
        "operationId": "payment_runs_create",
        "summary": "Create a payment run",
        "description": "",
        "tags": [
          "Payment Runs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek"
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                    "example": "gbp"
                  },
                  "description": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "automatic"
                    ]
                  },
                  "region": {
                    "type": "string",
                    "enum": [
                      "all",
                      "domestic",
                      "international"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "all",
                      "landlord",
                      "supplier"
                    ]
                  }
                },
                "required": [
                  "currency",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created payment run.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_run"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "automatic",
                        null
                      ]
                    },
                    "payout_status": {
                      "type": "object",
                      "properties": {
                        "canceled": {
                          "type": "integer"
                        },
                        "failed": {
                          "type": "integer"
                        },
                        "paid": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "canceled",
                        "failed",
                        "paid",
                        "total"
                      ]
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "all",
                        "domestic",
                        "international",
                        null
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_approval",
                        "processing",
                        "complete",
                        "canceled"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all",
                        "landlord",
                        "supplier"
                      ],
                      "description": "The type of payment run to create."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "completed_at",
                    "currency",
                    "description",
                    "method",
                    "payout_status",
                    "region",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "payment_runs_list",
        "summary": "List all payment runs",
        "description": "",
        "tags": [
          "Payment Runs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of payment runs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "payment_run"
                            ]
                          },
                          "amount": {
                            "type": "number"
                          },
                          "approved_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "completed_at": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                            "example": "gbp"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "method": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "manual",
                              "automatic",
                              null
                            ]
                          },
                          "payout_status": {
                            "type": "object",
                            "properties": {
                              "canceled": {
                                "type": "integer"
                              },
                              "failed": {
                                "type": "integer"
                              },
                              "paid": {
                                "type": "integer"
                              },
                              "total": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "canceled",
                              "failed",
                              "paid",
                              "total"
                            ]
                          },
                          "region": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "all",
                              "domestic",
                              "international",
                              null
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "requires_approval",
                              "processing",
                              "complete",
                              "canceled"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "all",
                              "landlord",
                              "supplier"
                            ],
                            "description": "The type of payment run to create."
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "approved_at",
                          "completed_at",
                          "currency",
                          "description",
                          "method",
                          "payout_status",
                          "region",
                          "status",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_runs/{id}": {
      "get": {
        "operationId": "payment_runs_retrieve",
        "summary": "Retrieve a payment run",
        "description": "",
        "tags": [
          "Payment Runs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the payment run.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_run"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "automatic",
                        null
                      ]
                    },
                    "payout_status": {
                      "type": "object",
                      "properties": {
                        "canceled": {
                          "type": "integer"
                        },
                        "failed": {
                          "type": "integer"
                        },
                        "paid": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "canceled",
                        "failed",
                        "paid",
                        "total"
                      ]
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "all",
                        "domestic",
                        "international",
                        null
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_approval",
                        "processing",
                        "complete",
                        "canceled"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all",
                        "landlord",
                        "supplier"
                      ],
                      "description": "The type of payment run to create."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "completed_at",
                    "currency",
                    "description",
                    "method",
                    "payout_status",
                    "region",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_runs/{id}/approve": {
      "post": {
        "operationId": "payment_runs_approve",
        "summary": "Approve a payment run",
        "description": "",
        "tags": [
          "Payment Runs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the approved payment run.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_run"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "automatic",
                        null
                      ]
                    },
                    "payout_status": {
                      "type": "object",
                      "properties": {
                        "canceled": {
                          "type": "integer"
                        },
                        "failed": {
                          "type": "integer"
                        },
                        "paid": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "canceled",
                        "failed",
                        "paid",
                        "total"
                      ]
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "all",
                        "domestic",
                        "international",
                        null
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_approval",
                        "processing",
                        "complete",
                        "canceled"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all",
                        "landlord",
                        "supplier"
                      ],
                      "description": "The type of payment run to create."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "completed_at",
                    "currency",
                    "description",
                    "method",
                    "payout_status",
                    "region",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_runs/{id}/cancel": {
      "post": {
        "operationId": "payment_runs_cancel",
        "summary": "Cancel a payment run",
        "description": "",
        "tags": [
          "Payment Runs"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the canceled payment run.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_run"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "approved_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "completed_at": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Must be a Unix timestamp in UTC time."
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "manual",
                        "automatic",
                        null
                      ]
                    },
                    "payout_status": {
                      "type": "object",
                      "properties": {
                        "canceled": {
                          "type": "integer"
                        },
                        "failed": {
                          "type": "integer"
                        },
                        "paid": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "canceled",
                        "failed",
                        "paid",
                        "total"
                      ]
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "all",
                        "domestic",
                        "international",
                        null
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_approval",
                        "processing",
                        "complete",
                        "canceled"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "all",
                        "landlord",
                        "supplier"
                      ],
                      "description": "The type of payment run to create."
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "approved_at",
                    "completed_at",
                    "currency",
                    "description",
                    "method",
                    "payout_status",
                    "region",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transfers/{id}/reversals": {
      "post": {
        "operationId": "transfer_reversals_create",
        "summary": "Create a transfer reversal",
        "description": "",
        "tags": [
          "Transfer Reversals"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  }
                },
                "required": [
                  "amount",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created transfer reversal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer_reversal"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "transfer_reversals_list",
        "summary": "List all transfer reversals",
        "description": "",
        "tags": [
          "Transfer Reversals"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of transfer reversals.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "transfer_reversal"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transfers/{id}/reversals/{id}": {
      "get": {
        "operationId": "transfer_reversals_retrieve",
        "summary": "Retrieve a transfer reversal",
        "description": "",
        "tags": [
          "Transfer Reversals"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the transfer reversal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer_reversal"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "transfer_reversals_update",
        "summary": "Update a transfer reversal",
        "description": "",
        "tags": [
          "Transfer Reversals"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the transfer reversal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer_reversal"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transfers": {
      "post": {
        "operationId": "transfers_create",
        "summary": "Create a transfer",
        "description": "",
        "tags": [
          "Transfers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "apply_unit_fees": {
                    "type": "boolean"
                  },
                  "amount": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "usd",
                      "eur",
                      "sek"
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                    "example": "gbp"
                  },
                  "description": {
                    "type": "string"
                  },
                  "destination": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "owner_payment_data": {
                    "type": "object",
                    "properties": {
                      "period": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "end": {
                            "type": "integer",
                            "description": "Must be a Unix timestamp in UTC time."
                          },
                          "start": {
                            "type": "integer",
                            "description": "Must be a Unix timestamp in UTC time."
                          }
                        },
                        "required": [
                          "end",
                          "start"
                        ]
                      }
                    }
                  },
                  "reporting_type": {
                    "type": "string",
                    "enum": [
                      "charge",
                      "rent",
                      "deposit",
                      "other"
                    ]
                  },
                  "source_transaction": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "destination"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created transfer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "transfers_list",
        "summary": "List all transfers",
        "description": "",
        "tags": [
          "Transfers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of transfers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "transfer"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transfers/{id}": {
      "get": {
        "operationId": "transfers_retrieve",
        "summary": "Retrieve a transfer",
        "description": "",
        "tags": [
          "Transfers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the transfer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "transfers_update",
        "summary": "Update a transfer",
        "description": "",
        "tags": [
          "Transfers"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the updated transfer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transfer"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout_sessions": {
      "post": {
        "operationId": "checkout_sessions_create",
        "summary": "Create a checkout session",
        "description": "Creates a new checkout session.",
        "tags": [
          "Checkout Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "The description of the checkout session. This will be displayed to the customer."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "minItems": 1
                  },
                  "consent_collection": {
                    "type": "object",
                    "properties": {
                      "terms_of_service": {
                        "type": "boolean",
                        "default": false,
                        "description": "Whether to collect terms of service acceptance."
                      }
                    },
                    "description": "The consent collection object."
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "eur",
                      "usd"
                    ],
                    "description": "The currency to use for the checkout session."
                  },
                  "custom_text": {
                    "type": "object",
                    "properties": {
                      "terms_of_service": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "maxLength": 1500,
                            "description": "The terms of service text to display to the customer. Can be up to 1500 characters long."
                          }
                        },
                        "required": [
                          "message"
                        ],
                        "description": "The terms of service custom text object."
                      }
                    },
                    "description": "The custom text object. Used to override the default text for a checkout session."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer to use for the checkout session."
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "The URL to return to after the checkout session is complete."
                  },
                  "send_email": {
                    "type": "boolean",
                    "default": true,
                    "description": "Whether to send an email to the customer with a link to the checkout session."
                  },
                  "subscription_data": {
                    "type": "object",
                    "properties": {
                      "add_invoice_items": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "integer",
                              "description": "The amount to be charged, represented as a whole integer if possible."
                            },
                            "currency": {
                              "type": "string",
                              "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                            },
                            "description": {
                              "type": "string",
                              "description": "The description for the invoice item, to be displayed to the customer."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "price": {
                              "type": "string",
                              "description": "The ID of the price object."
                            },
                            "tax_percent": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100,
                              "description": "The tax percentage to use when calculating the tax amount."
                            },
                            "tax_rate": {
                              "type": "string",
                              "description": "The ID of the tax rate object."
                            },
                            "transfer_behavior": {
                              "type": "string",
                              "enum": [
                                "automatic",
                                "owner",
                                "none"
                              ],
                              "description": "The invoice item transfer behavior. The default is automatic."
                            },
                            "transfer_destination": {
                              "type": "string",
                              "description": "ID of the owner that will be the transfer destination. Only allowed when the invoice item transfer behavior is owner."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "charge",
                                "rent",
                                "product"
                              ],
                              "description": "The type of the invoice item."
                            },
                            "unit": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The ID of the unit the invoice item is for."
                            }
                          },
                          "required": [
                            "amount",
                            "currency",
                            "description",
                            "tax_percent",
                            "transfer_behavior",
                            "type"
                          ]
                        },
                        "maxItems": 10,
                        "description": "A list of invoice items to add to invoices created by the subscription."
                      },
                      "billing_anchor": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The reference point that aligns future billing cycle dates."
                      },
                      "billing_anchor_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day_of_month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month to anchor billing to."
                          }
                        },
                        "required": [
                          "day_of_month"
                        ],
                        "description": "Configuration for the billing anchor."
                      },
                      "collection_method": {
                        "type": "string",
                        "enum": [
                          "charge_automatically",
                          "send_invoice"
                        ],
                        "description": "The collection method for the subscription."
                      },
                      "coupon": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The identifier of the coupon to apply to the subscription."
                      },
                      "custom_fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "maxLength": 30,
                              "description": "The name of the custom field."
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 30,
                              "description": "The value of the custom field."
                            }
                          },
                          "required": [
                            "name",
                            "value"
                          ]
                        },
                        "maxItems": 4,
                        "description": "Custom fields attached to the subscription invoices."
                      },
                      "days_before_collection": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 7,
                        "description": "The number of days before the due date to attempt collection."
                      },
                      "days_until_due": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "minimum": 0,
                        "description": "The number of days until the invoice is due."
                      },
                      "description": {
                        "type": "string",
                        "description": "The description of the subscription."
                      },
                      "end_date": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The end date of the subscription."
                      },
                      "end_date_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month for the end date."
                          },
                          "month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12,
                            "description": "The month for the end date."
                          },
                          "year": {
                            "type": "integer",
                            "description": "The year for the end date."
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ],
                        "description": "Configuration to compute the end date of the subscription."
                      },
                      "metadata": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Set of key-value pairs to attach to the subscription."
                      },
                      "phases": {
                        "type": [
                          "array",
                          "null"
                        ],
                        "items": {
                          "type": "object",
                          "properties": {
                            "start_date": {
                              "type": "integer",
                              "description": "The start date of the phase."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string",
                                    "description": "The description of the subscription item."
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs to attach to the subscription item."
                                  },
                                  "price": {
                                    "type": "string",
                                    "description": "The identifier of the price to use for the subscription item."
                                  },
                                  "price_data": {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "number",
                                        "description": "The amount of the price."
                                      },
                                      "currency": {
                                        "type": "string",
                                        "description": "The currency of the price."
                                      },
                                      "tax_percent": {
                                        "type": "number",
                                        "description": "The tax percentage to apply to the price."
                                      }
                                    },
                                    "required": [
                                      "amount",
                                      "currency",
                                      "tax_percent"
                                    ],
                                    "description": "The price data for the subscription item."
                                  },
                                  "proration_behavior": {
                                    "type": "string",
                                    "enum": [
                                      "create_prorations",
                                      "none"
                                    ],
                                    "description": "Whether to create prorations when creating the subscription item."
                                  },
                                  "schedule": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "integer",
                                          "description": "The amount for the scheduled change."
                                        },
                                        "effective_at": {
                                          "type": "integer",
                                          "description": "The date the scheduled change takes effect."
                                        },
                                        "effective_at_config": {
                                          "type": "object",
                                          "properties": {
                                            "day": {
                                              "type": "integer",
                                              "minimum": 1,
                                              "maximum": 31,
                                              "description": "The day of the month the scheduled change takes effect."
                                            },
                                            "month": {
                                              "type": "integer",
                                              "minimum": 1,
                                              "maximum": 12,
                                              "description": "The month the scheduled change takes effect."
                                            },
                                            "year": {
                                              "type": "integer",
                                              "description": "The year the scheduled change takes effect."
                                            }
                                          },
                                          "required": [
                                            "day",
                                            "month",
                                            "year"
                                          ],
                                          "description": "Configuration to compute the effective date of the scheduled change."
                                        }
                                      },
                                      "required": [
                                        "amount"
                                      ]
                                    },
                                    "description": "The schedule for the subscription item."
                                  },
                                  "tax_rate": {
                                    "type": "string",
                                    "description": "The identifier of the tax rate for the subscription item."
                                  },
                                  "transfer_behavior": {
                                    "type": "string",
                                    "enum": [
                                      "automatic",
                                      "owner",
                                      "none"
                                    ],
                                    "description": "The transfer behavior for the subscription item."
                                  },
                                  "transfer_destination": {
                                    "type": "string",
                                    "description": "The identifier of the connected account to transfer funds to."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "charge",
                                      "rent",
                                      "product"
                                    ],
                                    "description": "The type of the subscription item."
                                  },
                                  "unit": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "The identifier of the unit associated with the subscription item."
                                  }
                                },
                                "required": [
                                  "price_data",
                                  "type"
                                ]
                              },
                              "minItems": 1,
                              "maxItems": 10,
                              "description": "The items in the phase."
                            }
                          },
                          "required": [
                            "start_date",
                            "items"
                          ]
                        },
                        "minItems": 1,
                        "description": "The phases of the subscription. Required when interval is custom."
                      },
                      "start_date": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The start date of the subscription."
                      },
                      "start_date_config": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "description": "The day of the month for the start date."
                          },
                          "month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12,
                            "description": "The month for the start date."
                          },
                          "year": {
                            "type": "integer",
                            "description": "The year for the start date."
                          }
                        },
                        "required": [
                          "day",
                          "month",
                          "year"
                        ],
                        "description": "Configuration to compute the start date of the subscription."
                      },
                      "application": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The identifier of the application to associate with the subscription."
                      },
                      "interval": {
                        "type": "string",
                        "enum": [
                          "month",
                          "week",
                          "custom"
                        ],
                        "description": "The billing interval for the subscription."
                      },
                      "interval_count": {
                        "type": "integer",
                        "description": "The number of intervals between each billing cycle. Required when interval is not custom."
                      },
                      "invoice_settings": {
                        "type": "object",
                        "properties": {
                          "custom_fields": {
                            "type": [
                              "array",
                              "null"
                            ],
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "maxLength": 40,
                                  "description": "The name of the custom field."
                                },
                                "value": {
                                  "type": "string",
                                  "maxLength": 140,
                                  "description": "The value of the custom field."
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ]
                            },
                            "maxItems": 4,
                            "description": "Custom fields to include on invoices."
                          }
                        },
                        "description": "The invoice settings for the subscription."
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "description": {
                              "type": "string",
                              "description": "The description of the subscription item."
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs to attach to the subscription item."
                            },
                            "price": {
                              "type": "string",
                              "description": "The identifier of the price to use for the subscription item."
                            },
                            "price_data": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "description": "The amount of the price."
                                },
                                "currency": {
                                  "type": "string",
                                  "description": "The currency of the price."
                                },
                                "tax_percent": {
                                  "type": "number",
                                  "description": "The tax percentage to apply to the price."
                                }
                              },
                              "required": [
                                "amount",
                                "currency",
                                "tax_percent"
                              ],
                              "description": "The price data for the subscription item."
                            },
                            "proration_behavior": {
                              "type": "string",
                              "enum": [
                                "create_prorations",
                                "none"
                              ],
                              "description": "Whether to create prorations when creating the subscription item."
                            },
                            "schedule": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer",
                                    "description": "The amount for the scheduled change."
                                  },
                                  "effective_at": {
                                    "type": "integer",
                                    "description": "The date the scheduled change takes effect."
                                  },
                                  "effective_at_config": {
                                    "type": "object",
                                    "properties": {
                                      "day": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 31,
                                        "description": "The day of the month the scheduled change takes effect."
                                      },
                                      "month": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 12,
                                        "description": "The month the scheduled change takes effect."
                                      },
                                      "year": {
                                        "type": "integer",
                                        "description": "The year the scheduled change takes effect."
                                      }
                                    },
                                    "required": [
                                      "day",
                                      "month",
                                      "year"
                                    ],
                                    "description": "Configuration to compute the effective date of the scheduled change."
                                  }
                                },
                                "required": [
                                  "amount"
                                ]
                              },
                              "description": "The schedule for the subscription item."
                            },
                            "tax_rate": {
                              "type": "string",
                              "description": "The identifier of the tax rate for the subscription item."
                            },
                            "transfer_behavior": {
                              "type": "string",
                              "enum": [
                                "automatic",
                                "owner",
                                "none"
                              ],
                              "description": "The transfer behavior for the subscription item."
                            },
                            "transfer_destination": {
                              "type": "string",
                              "description": "The identifier of the connected account to transfer funds to."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "charge",
                                "rent",
                                "product"
                              ],
                              "description": "The type of the subscription item."
                            },
                            "unit": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The identifier of the unit associated with the subscription item."
                            }
                          },
                          "required": [
                            "price_data",
                            "type"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 10,
                        "description": "The items for the subscription. Required when interval is not custom."
                      },
                      "use_future_billing_date": {
                        "type": "boolean",
                        "description": "Whether to use a future billing date for the first invoice."
                      }
                    },
                    "required": [
                      "collection_method",
                      "interval"
                    ],
                    "description": "The subscription data hash."
                  }
                },
                "required": [
                  "description",
                  "currency",
                  "customer",
                  "subscription_data"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the checkout session object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "checkout_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "consent_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "custom_text": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "terms_of_service_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website",
                        "terms_of_service_url"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "canceled",
                        "expired",
                        "open",
                        "complete"
                      ]
                    },
                    "subscription_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {}
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "consent_collection",
                    "custom_text",
                    "currency",
                    "customer",
                    "default_payment_method",
                    "description",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription_data",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "checkout_sessions_list",
        "summary": "List all checkout sessions",
        "description": "Returns a list of checkout sessions. The checkout sessions are returned sorted by creation date, with the most recent checkout sessions appearing first.",
        "tags": [
          "Checkout Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of checkout sessions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "checkout_session"
                            ]
                          },
                          "completed_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "consent_collection": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "terms_of_service": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "terms_of_service"
                            ]
                          },
                          "custom_text": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "terms_of_service": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "message"
                                ]
                              }
                            },
                            "required": [
                              "terms_of_service"
                            ]
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "gbp",
                              "usd",
                              "eur",
                              "sek"
                            ],
                            "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                            "example": "gbp"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          },
                          "default_payment_method": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "merchant": {
                            "type": "object",
                            "properties": {
                              "business_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "color": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "display_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "icon": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "id": {
                                "type": "string"
                              },
                              "support_email": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "support_phone": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "support_website": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "terms_of_service_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "business_name",
                              "color",
                              "country",
                              "display_name",
                              "icon",
                              "id",
                              "support_email",
                              "support_phone",
                              "support_website",
                              "terms_of_service_url"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "payment_method_types": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "return_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "canceled",
                              "expired",
                              "open",
                              "complete"
                            ]
                          },
                          "subscription_data": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {}
                          },
                          "subscription": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "completed_at",
                          "consent_collection",
                          "custom_text",
                          "currency",
                          "customer",
                          "default_payment_method",
                          "description",
                          "payment_method_types",
                          "return_url",
                          "status",
                          "subscription_data",
                          "subscription",
                          "url"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout_sessions/{id}": {
      "get": {
        "operationId": "checkout_sessions_retrieve",
        "summary": "Retrieve a checkout session",
        "description": "Retrieves the checkout session with the given ID.",
        "tags": [
          "Checkout Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a checkout session object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "checkout_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "consent_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "custom_text": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "terms_of_service_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website",
                        "terms_of_service_url"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "canceled",
                        "expired",
                        "open",
                        "complete"
                      ]
                    },
                    "subscription_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {}
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "consent_collection",
                    "custom_text",
                    "currency",
                    "customer",
                    "default_payment_method",
                    "description",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription_data",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "checkout_sessions_update",
        "summary": "Update a checkout session",
        "description": "Updates a checkout session.",
        "tags": [
          "Checkout Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "The description of the checkout session. This will be displayed to the customer."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "minItems": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns an updated checkout session object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "checkout_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "consent_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "custom_text": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "terms_of_service_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website",
                        "terms_of_service_url"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "canceled",
                        "expired",
                        "open",
                        "complete"
                      ]
                    },
                    "subscription_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {}
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "consent_collection",
                    "custom_text",
                    "currency",
                    "customer",
                    "default_payment_method",
                    "description",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription_data",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/checkout_sessions/{id}/cancel": {
      "post": {
        "operationId": "checkout_sessions_cancel",
        "summary": "Cancel a checkout session",
        "description": "Cancels a checkout session.",
        "tags": [
          "Checkout Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the checkout session object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "checkout_session"
                      ]
                    },
                    "completed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "consent_collection": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "custom_text": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "terms_of_service": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "message"
                          ]
                        }
                      },
                      "required": [
                        "terms_of_service"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "enum": [
                        "gbp",
                        "usd",
                        "eur",
                        "sek"
                      ],
                      "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency.",
                      "example": "gbp"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "default_payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "terms_of_service_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website",
                        "terms_of_service_url"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "canceled",
                        "expired",
                        "open",
                        "complete"
                      ]
                    },
                    "subscription_data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {}
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "completed_at",
                    "consent_collection",
                    "custom_text",
                    "currency",
                    "customer",
                    "default_payment_method",
                    "description",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription_data",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/disputes/{id}": {
      "get": {
        "operationId": "disputes_retrieve",
        "summary": "Retrieve a dispute",
        "description": "Retrieve a dispute",
        "tags": [
          "Disputes"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the retrieved dispute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "dispute"
                      ]
                    },
                    "amount": {
                      "type": "integer"
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fee": {
                              "type": "integer"
                            },
                            "fee_details": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "tax": {
                                    "type": "integer"
                                  },
                                  "tax_percent": {
                                    "type": "number"
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "description",
                                  "tax",
                                  "tax_percent",
                                  "type"
                                ]
                              }
                            },
                            "net": {
                              "type": "integer"
                            },
                            "payout": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_object": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "adjustment",
                                "charge",
                                "fee",
                                "payment",
                                "payout",
                                "refund",
                                "transfer"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "fee",
                            "fee_details",
                            "net",
                            "payout",
                            "source",
                            "source_object",
                            "type"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "balance_transaction",
                    "currency",
                    "customer",
                    "description"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "disputes_update",
        "summary": "Update a dispute",
        "description": "Update a dispute",
        "tags": [
          "Disputes"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "assignee": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "evidence": {
                    "type": "object",
                    "properties": {
                      "customer_communication": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "product_description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 20000
                      },
                      "refund_policy": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "refund_policy_disclosure": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 20000
                      },
                      "refund_refusal_explanation": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "maxLength": 20000
                      },
                      "service_date": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "service_documentation": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated dispute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "dispute"
                      ]
                    },
                    "amount": {
                      "type": "integer"
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fee": {
                              "type": "integer"
                            },
                            "fee_details": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "tax": {
                                    "type": "integer"
                                  },
                                  "tax_percent": {
                                    "type": "number"
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "description",
                                  "tax",
                                  "tax_percent",
                                  "type"
                                ]
                              }
                            },
                            "net": {
                              "type": "integer"
                            },
                            "payout": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_object": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "adjustment",
                                "charge",
                                "fee",
                                "payment",
                                "payout",
                                "refund",
                                "transfer"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "fee",
                            "fee_details",
                            "net",
                            "payout",
                            "source",
                            "source_object",
                            "type"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "balance_transaction",
                    "currency",
                    "customer",
                    "description"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/disputes/{id}/mark_resolved": {
      "post": {
        "operationId": "disputes_mark-resolved",
        "summary": "Mark a dispute as resolved",
        "description": "Marks the dispute as resolved.",
        "tags": [
          "Disputes"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the resolved dispute.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "dispute"
                      ]
                    },
                    "amount": {
                      "type": "integer"
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fee": {
                              "type": "integer"
                            },
                            "fee_details": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "tax": {
                                    "type": "integer"
                                  },
                                  "tax_percent": {
                                    "type": "number"
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "description",
                                  "tax",
                                  "tax_percent",
                                  "type"
                                ]
                              }
                            },
                            "net": {
                              "type": "integer"
                            },
                            "payout": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_object": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "adjustment",
                                "charge",
                                "fee",
                                "payment",
                                "payout",
                                "refund",
                                "transfer"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "fee",
                            "fee_details",
                            "net",
                            "payout",
                            "source",
                            "source_object",
                            "type"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "balance_transaction",
                    "currency",
                    "customer",
                    "description"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/disputes": {
      "get": {
        "operationId": "disputes_list",
        "summary": "List all disputes",
        "description": "List all disputes",
        "tags": [
          "Disputes"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A dictionary with a data property that contains an array of up to limit disputes. Each entry in the array is a separate dispute object. If no more disputes are available, the resulting array will be empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "dispute"
                            ]
                          },
                          "amount": {
                            "type": "integer"
                          },
                          "balance_transaction": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "balance_transaction"
                                    ]
                                  },
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "available_on": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "fee": {
                                    "type": "integer"
                                  },
                                  "fee_details": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "integer"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "tax": {
                                          "type": "integer"
                                        },
                                        "tax_percent": {
                                          "type": "number"
                                        },
                                        "type": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "description",
                                        "tax",
                                        "tax_percent",
                                        "type"
                                      ]
                                    }
                                  },
                                  "net": {
                                    "type": "integer"
                                  },
                                  "payout": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "source": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "source_object": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "adjustment",
                                      "charge",
                                      "fee",
                                      "payment",
                                      "payout",
                                      "refund",
                                      "transfer"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "amount",
                                  "available_on",
                                  "currency",
                                  "description",
                                  "fee",
                                  "fee_details",
                                  "net",
                                  "payout",
                                  "source",
                                  "source_object",
                                  "type"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "customer"
                                    ]
                                  },
                                  "address": {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "default_payment_method": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delinquent": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "email": {
                                    "type": "string",
                                    "format": "email"
                                  },
                                  "invoice_prefix": {
                                    "type": "string"
                                  },
                                  "invoicing": {
                                    "type": "object",
                                    "properties": {
                                      "arrears_emails": {
                                        "type": "boolean"
                                      },
                                      "email_cc": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "email"
                                        }
                                      },
                                      "email_to": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "format": "email"
                                      }
                                    },
                                    "required": [
                                      "arrears_emails",
                                      "email_cc"
                                    ]
                                  },
                                  "legal": {
                                    "type": "object",
                                    "properties": {
                                      "dob": {
                                        "type": "object",
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "first_name",
                                      "last_name"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "radar": {
                                    "type": "object",
                                    "properties": {
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "reason": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "risk_level": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "message",
                                      "reason",
                                      "risk_level"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "address",
                                  "default_payment_method",
                                  "delinquent",
                                  "description",
                                  "email",
                                  "invoice_prefix",
                                  "invoicing",
                                  "legal",
                                  "name",
                                  "phone",
                                  "radar"
                                ]
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "balance_transaction",
                          "currency",
                          "customer",
                          "description"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/external_accounts": {
      "post": {
        "operationId": "external_accounts_create",
        "summary": "Create an external account",
        "description": "Create a new external account.",
        "tags": [
          "External Accounts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attach": {
                    "type": "object",
                    "properties": {
                      "owner": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "account",
                          "owner"
                        ]
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  "bank_account": {
                    "type": "object",
                    "properties": {
                      "account_holder_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "account_holder_type": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "individual",
                          "company",
                          null
                        ]
                      },
                      "country": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "aud",
                          "eur",
                          "gbp",
                          "bnd",
                          "cny",
                          "hkd",
                          "kwd",
                          "ils",
                          "inr",
                          "myr",
                          "mur",
                          "mxn",
                          "nzd",
                          "omr",
                          "qar",
                          "sar",
                          "sgd",
                          "sek",
                          "thb",
                          "try",
                          "usd",
                          "aed",
                          "uyu"
                        ]
                      },
                      "swift_bic": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "account_number": {
                        "type": "string"
                      },
                      "routing_number": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "account_holder_name",
                      "account_holder_type",
                      "country",
                      "currency",
                      "account_number"
                    ]
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "bank_account"
                    ]
                  }
                },
                "required": [
                  "attach",
                  "bank_account",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the external account object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_account"
                      ]
                    },
                    "available_payout_methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "bank_account": {
                      "type": "object",
                      "properties": {
                        "account_holder_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_holder_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "individual",
                            "company",
                            null
                          ]
                        },
                        "bank_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "aud",
                            "eur",
                            "gbp",
                            "bnd",
                            "cny",
                            "hkd",
                            "kwd",
                            "ils",
                            "inr",
                            "myr",
                            "mur",
                            "mxn",
                            "nzd",
                            "omr",
                            "qar",
                            "sar",
                            "sgd",
                            "sek",
                            "thb",
                            "try",
                            "usd",
                            "aed",
                            "uyu"
                          ]
                        },
                        "last4": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "routing_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "swift_bic": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "account_holder_name",
                        "account_holder_type",
                        "bank_name",
                        "country",
                        "currency",
                        "last4",
                        "routing_number"
                      ]
                    },
                    "confirmation_of_payee": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "awaiting_acknowledgement",
                            "confirmed",
                            "uninitiated",
                            null
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "errored"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "bank_account"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "available_payout_methods",
                    "confirmation_of_payee",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "external_accounts_list",
        "summary": "List all external accounts",
        "description": "Returns a list of external accounts. The external accounts are returned sorted by creation date, with the most recently created external accounts appearing first.",
        "tags": [
          "External Accounts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of external accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "external_account"
                            ]
                          },
                          "available_payout_methods": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "bank_account": {
                            "type": "object",
                            "properties": {
                              "account_holder_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "account_holder_type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "individual",
                                  "company",
                                  null
                                ]
                              },
                              "bank_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": "string"
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "aud",
                                  "eur",
                                  "gbp",
                                  "bnd",
                                  "cny",
                                  "hkd",
                                  "kwd",
                                  "ils",
                                  "inr",
                                  "myr",
                                  "mur",
                                  "mxn",
                                  "nzd",
                                  "omr",
                                  "qar",
                                  "sar",
                                  "sgd",
                                  "sek",
                                  "thb",
                                  "try",
                                  "usd",
                                  "aed",
                                  "uyu"
                                ]
                              },
                              "last4": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "routing_number": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "swift_bic": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "account_holder_name",
                              "account_holder_type",
                              "bank_name",
                              "country",
                              "currency",
                              "last4",
                              "routing_number"
                            ]
                          },
                          "confirmation_of_payee": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "awaiting_acknowledgement",
                                  "confirmed",
                                  "uninitiated",
                                  null
                                ]
                              }
                            },
                            "required": [
                              "status"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "errored"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "bank_account"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "available_payout_methods",
                          "confirmation_of_payee",
                          "status",
                          "type"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/external_accounts/{id}": {
      "get": {
        "operationId": "external_accounts_retrieve",
        "summary": "Retrieve an external account",
        "description": "Retrieve the details about a specific external account.",
        "tags": [
          "External Accounts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the external account object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_account"
                      ]
                    },
                    "available_payout_methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "bank_account": {
                      "type": "object",
                      "properties": {
                        "account_holder_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_holder_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "individual",
                            "company",
                            null
                          ]
                        },
                        "bank_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "aud",
                            "eur",
                            "gbp",
                            "bnd",
                            "cny",
                            "hkd",
                            "kwd",
                            "ils",
                            "inr",
                            "myr",
                            "mur",
                            "mxn",
                            "nzd",
                            "omr",
                            "qar",
                            "sar",
                            "sgd",
                            "sek",
                            "thb",
                            "try",
                            "usd",
                            "aed",
                            "uyu"
                          ]
                        },
                        "last4": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "routing_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "swift_bic": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "account_holder_name",
                        "account_holder_type",
                        "bank_name",
                        "country",
                        "currency",
                        "last4",
                        "routing_number"
                      ]
                    },
                    "confirmation_of_payee": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "awaiting_acknowledgement",
                            "confirmed",
                            "uninitiated",
                            null
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "errored"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "bank_account"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "available_payout_methods",
                    "confirmation_of_payee",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "external_accounts_delete",
        "summary": "Delete an external account",
        "description": "Deletes the external account.",
        "tags": [
          "External Accounts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the deleted external account object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_account"
                      ]
                    },
                    "available_payout_methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "bank_account": {
                      "type": "object",
                      "properties": {
                        "account_holder_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_holder_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "individual",
                            "company",
                            null
                          ]
                        },
                        "bank_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "aud",
                            "eur",
                            "gbp",
                            "bnd",
                            "cny",
                            "hkd",
                            "kwd",
                            "ils",
                            "inr",
                            "myr",
                            "mur",
                            "mxn",
                            "nzd",
                            "omr",
                            "qar",
                            "sar",
                            "sgd",
                            "sek",
                            "thb",
                            "try",
                            "usd",
                            "aed",
                            "uyu"
                          ]
                        },
                        "last4": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "routing_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "swift_bic": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "account_holder_name",
                        "account_holder_type",
                        "bank_name",
                        "country",
                        "currency",
                        "last4",
                        "routing_number"
                      ]
                    },
                    "confirmation_of_payee": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "awaiting_acknowledgement",
                            "confirmed",
                            "uninitiated",
                            null
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "errored"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "bank_account"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "available_payout_methods",
                    "confirmation_of_payee",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/external_accounts/{id}/acknowledge_confirmation_of_payee": {
      "post": {
        "operationId": "external_accounts_acknowledge_confirmation_of_payee",
        "summary": "Acknowledge the confirmation of payee",
        "description": "Acknowledge the confirmation of payee for the external account.",
        "tags": [
          "External Accounts"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the acknowledged external account object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_account"
                      ]
                    },
                    "available_payout_methods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "bank_account": {
                      "type": "object",
                      "properties": {
                        "account_holder_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_holder_type": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "individual",
                            "company",
                            null
                          ]
                        },
                        "bank_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "aud",
                            "eur",
                            "gbp",
                            "bnd",
                            "cny",
                            "hkd",
                            "kwd",
                            "ils",
                            "inr",
                            "myr",
                            "mur",
                            "mxn",
                            "nzd",
                            "omr",
                            "qar",
                            "sar",
                            "sgd",
                            "sek",
                            "thb",
                            "try",
                            "usd",
                            "aed",
                            "uyu"
                          ]
                        },
                        "last4": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "routing_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "swift_bic": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "account_holder_name",
                        "account_holder_type",
                        "bank_name",
                        "country",
                        "currency",
                        "last4",
                        "routing_number"
                      ]
                    },
                    "confirmation_of_payee": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "awaiting_acknowledgement",
                            "confirmed",
                            "uninitiated",
                            null
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "errored"
                      ]
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "bank_account"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "available_payout_methods",
                    "confirmation_of_payee",
                    "status",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_initiations": {
      "post": {
        "operationId": "payment_initiations_create",
        "summary": "Create a payment initiation",
        "description": "Create a payment initiation request. Yorlet supports two types of payment initiation: <code>type=inbound_payment</code> initiates a payment from an external bank account to a bank account in Yorlet, and <code>type=outbound_payment</code> initiates a payment from your bank account to an external bank account.",
        "tags": [
          "Payment Initiations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "gbp",
                          "sek"
                        ]
                      },
                      "metadata": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                      },
                      "reference": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 18,
                        "pattern": "^[a-zA-Z0-9]*$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "inbound_payment"
                        ]
                      },
                      "inbound_payment": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "customer"
                            ]
                          },
                          "customer": {
                            "type": "string",
                            "description": "The customer ID for this inbound payment"
                          }
                        },
                        "required": [
                          "type",
                          "customer"
                        ]
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "type",
                      "inbound_payment"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "exclusiveMinimum": 0
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "gbp",
                          "sek"
                        ]
                      },
                      "metadata": {
                        "type": [
                          "object",
                          "null"
                        ],
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                      },
                      "reference": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 18,
                        "pattern": "^[a-zA-Z0-9]*$"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "outbound_payment"
                        ]
                      },
                      "outbound_payment": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "owner_payout"
                            ]
                          },
                          "owner_payout": {
                            "type": "string",
                            "description": "The owner payout ID for this outbound payment"
                          }
                        },
                        "required": [
                          "type",
                          "owner_payout"
                        ]
                      }
                    },
                    "required": [
                      "amount",
                      "currency",
                      "type",
                      "outbound_payment"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the payment initiation object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "inbound_payment"
                          ]
                        },
                        "inbound_payment": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "customer": {
                                  "type": "string",
                                  "description": "The customer ID for this inbound payment"
                                }
                              },
                              "required": [
                                "type",
                                "customer"
                              ]
                            }
                          ],
                          "description": "The inbound payment details"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "inbound_payment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "outbound_payment"
                          ]
                        },
                        "outbound_payment": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "owner_payout"
                                  ]
                                },
                                "owner_payout": {
                                  "type": "string",
                                  "description": "The owner payout ID for this outbound payment"
                                }
                              },
                              "required": [
                                "type",
                                "owner_payout"
                              ]
                            }
                          ],
                          "description": "The outbound payment details"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "outbound_payment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "direct_transfer"
                          ]
                        },
                        "direct_transfer": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "customer": {
                                  "type": "string",
                                  "description": "The customer ID for this direct transfer"
                                }
                              },
                              "required": [
                                "type",
                                "customer"
                              ]
                            }
                          ],
                          "description": "The direct transfer details"
                        },
                        "transaction": {
                          "type": "string",
                          "description": "Associated transaction ID"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "direct_transfer"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "payment_initiations_list",
        "summary": "List all payment initiations",
        "description": "Returns a list of your payment initiations. The payment initiations are returned sorted by creation date, with the most recently created payment initiations appearing first.",
        "tags": [
          "Payment Initiations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of payment initiations.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_initiation"
                                ]
                              },
                              "amount": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "sek"
                                ]
                              },
                              "reference": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "inbound_payment"
                                ]
                              },
                              "inbound_payment": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "customer": {
                                        "type": "string",
                                        "description": "The customer ID for this inbound payment"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "customer"
                                    ]
                                  }
                                ],
                                "description": "The inbound payment details"
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "type",
                              "inbound_payment"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_initiation"
                                ]
                              },
                              "amount": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "sek"
                                ]
                              },
                              "reference": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "outbound_payment"
                                ]
                              },
                              "outbound_payment": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "owner_payout"
                                        ]
                                      },
                                      "owner_payout": {
                                        "type": "string",
                                        "description": "The owner payout ID for this outbound payment"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "owner_payout"
                                    ]
                                  }
                                ],
                                "description": "The outbound payment details"
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "type",
                              "outbound_payment"
                            ]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_initiation"
                                ]
                              },
                              "amount": {
                                "type": "integer",
                                "exclusiveMinimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "enum": [
                                  "gbp",
                                  "sek"
                                ]
                              },
                              "reference": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "metadata": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "direct_transfer"
                                ]
                              },
                              "direct_transfer": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "customer": {
                                        "type": "string",
                                        "description": "The customer ID for this direct transfer"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "customer"
                                    ]
                                  }
                                ],
                                "description": "The direct transfer details"
                              },
                              "transaction": {
                                "type": "string",
                                "description": "Associated transaction ID"
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "type",
                              "direct_transfer"
                            ]
                          }
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_initiations/{id}": {
      "get": {
        "operationId": "payment_initiations_retrieve",
        "summary": "Retrieves a payment initiation",
        "description": "Retrieves a Payment Initiation.",
        "tags": [
          "Payment Initiations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The single-use token object is returned upon success. Otherwise, this call returns an error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "inbound_payment"
                          ]
                        },
                        "inbound_payment": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "customer": {
                                  "type": "string",
                                  "description": "The customer ID for this inbound payment"
                                }
                              },
                              "required": [
                                "type",
                                "customer"
                              ]
                            }
                          ],
                          "description": "The inbound payment details"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "inbound_payment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "outbound_payment"
                          ]
                        },
                        "outbound_payment": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "owner_payout"
                                  ]
                                },
                                "owner_payout": {
                                  "type": "string",
                                  "description": "The owner payout ID for this outbound payment"
                                }
                              },
                              "required": [
                                "type",
                                "owner_payout"
                              ]
                            }
                          ],
                          "description": "The outbound payment details"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "outbound_payment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_initiation"
                          ]
                        },
                        "amount": {
                          "type": "integer",
                          "exclusiveMinimum": 0
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "gbp",
                            "sek"
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "direct_transfer"
                          ]
                        },
                        "direct_transfer": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "customer": {
                                  "type": "string",
                                  "description": "The customer ID for this direct transfer"
                                }
                              },
                              "required": [
                                "type",
                                "customer"
                              ]
                            }
                          ],
                          "description": "The direct transfer details"
                        },
                        "transaction": {
                          "type": "string",
                          "description": "Associated transaction ID"
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "type",
                        "direct_transfer"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_initiations/{id}/tokens": {
      "post": {
        "operationId": "payment_initiations_token",
        "summary": "Create a payment initiation token",
        "description": "Creates a single-use token that can be used to initiate a payment. Yorlet supports Payment Initiation using [Plaid](https://plaid.com/docs/payment-initiation/), you will need to launch the Payment Initiation flow in Plaid Link with the token returned by this endpoint.",
        "tags": [
          "Payment Initiations"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "brand_name": {
                    "type": "string",
                    "maxLength": 30
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The single-use token object is returned upon success. Otherwise, this call returns an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_initiation.token"
                      ]
                    },
                    "token": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "plaid"
                      ]
                    }
                  },
                  "required": [
                    "created",
                    "object",
                    "token",
                    "type"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_method_sessions": {
      "post": {
        "operationId": "payment_method_sessions_create",
        "summary": "Create a payment method session",
        "description": "Create a new payment method session.",
        "tags": [
          "Payment Method Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customer": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "minItems": 1
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "send_email": {
                    "type": "boolean"
                  },
                  "subscription": {
                    "type": "string"
                  }
                },
                "required": [
                  "customer",
                  "payment_method_types"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the payment method session object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_method_session"
                      ]
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "autogiro",
                          "bacs_debit",
                          "card",
                          "card_present",
                          "bank_transfer",
                          "direct_transfer",
                          "gbp_credit_transfer",
                          "pay_by_bank",
                          "sepa_debit"
                        ]
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "succeeded"
                      ]
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "customer",
                    "payment_method",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_method_sessions/{id}": {
      "get": {
        "operationId": "payment_method_sessions_retrieve",
        "summary": "Retrieve a payment method session",
        "description": "Retrieve the details about a specific payment method session.",
        "tags": [
          "Payment Method Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the payment method session object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_method_session"
                      ]
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "autogiro",
                          "bacs_debit",
                          "card",
                          "card_present",
                          "bank_transfer",
                          "direct_transfer",
                          "gbp_credit_transfer",
                          "pay_by_bank",
                          "sepa_debit"
                        ]
                      }
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "succeeded"
                      ]
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uri"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "customer",
                    "payment_method",
                    "payment_method_types",
                    "return_url",
                    "status",
                    "subscription",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_methods": {
      "post": {
        "operationId": "payment_methods_create",
        "summary": "Create a payment method",
        "description": "Creates a new payment method.",
        "tags": [
          "Payment Methods"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bank_transfer": {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "currency"
                    ]
                  },
                  "customer": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "alipay",
                      "autogiro",
                      "bacs_debit",
                      "bank_transfer",
                      "card_present",
                      "card",
                      "direct_transfer",
                      "pay_by_bank",
                      "sepa_debit",
                      "test_card",
                      "wechat_pay"
                    ]
                  }
                },
                "required": [
                  "customer",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a payment method object if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        },
                        "bacs_debit": {
                          "type": "object",
                          "properties": {
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sort_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "fingerprint",
                            "last4",
                            "sort_code"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bacs_debit"
                      ],
                      "title": "Bacs debit",
                      "description": "The Bacs debit payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bank_transfer"
                          ]
                        },
                        "bank_transfer": {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "financial_addresses": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "sort_code"
                                    ]
                                  },
                                  "sort_code": {
                                    "type": "object",
                                    "properties": {
                                      "account_holder_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "account_holder_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account_number": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "bank_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "sort_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_holder_name",
                                      "account_number",
                                      "sort_code"
                                    ]
                                  },
                                  "supported_networks": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bacs",
                                        "fps"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "sort_code",
                                  "supported_networks"
                                ]
                              }
                            },
                            "reconciliation_deadline": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "gb_bank_transfer",
                                "eu_bank_transfer",
                                "jp_bank_transfer",
                                "us_bank_transfer",
                                "mx_bank_transfer",
                                null
                              ]
                            }
                          },
                          "required": [
                            "balance",
                            "country",
                            "financial_addresses",
                            "reconciliation_deadline",
                            "type"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bank_transfer"
                      ],
                      "title": "Bank transfer",
                      "description": "The bank transfer payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card_present"
                          ]
                        },
                        "card_present": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "cardholder_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown",
                                null
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "read_method": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "terminal": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "cardholder_name",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "read_method"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card_present"
                      ],
                      "title": "Card present",
                      "description": "The card present payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card"
                          ]
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "checks": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address_line1_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "address_postal_code_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "cvc_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address_line1_check",
                                "address_postal_code_check",
                                "cvc_check"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": "string",
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown"
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "three_d_secure_usage": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "supported": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "supported"
                              ]
                            },
                            "wallet": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amex_express_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "apple_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "dynamic_last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "google_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "link": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "masterpass": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "onemove": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "fees_payer": {
                                      "type": "string",
                                      "enum": [
                                        "account",
                                        "consumer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "fees_payer"
                                  ]
                                },
                                "samsung_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "visa_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "amex_express_checkout",
                                    "apple_pay",
                                    "google_pay",
                                    "link",
                                    "masterpass",
                                    "onemove",
                                    "samsung_pay",
                                    "visa_checkout"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "checks",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "three_d_secure_usage",
                            "wallet"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card"
                      ],
                      "title": "Card",
                      "description": "The card payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "pay_by_bank"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type"
                      ],
                      "title": "Pay by bank",
                      "description": "The pay by bank payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "sepa_debit"
                          ]
                        },
                        "sepa_debit": {
                          "type": "object",
                          "properties": {
                            "bank_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "branch_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "bank_code",
                            "branch_code",
                            "country",
                            "fingerprint",
                            "last4"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "sepa_debit"
                      ],
                      "title": "Sepa debit",
                      "description": "The sepa debit payment method."
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "payment_methods_list",
        "summary": "List all payment methods",
        "description": "Returns a list of payment methods.",
        "tags": [
          "Payment Methods"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of payment methods.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "bacs_debit"
                                ]
                              },
                              "bacs_debit": {
                                "type": "object",
                                "properties": {
                                  "fingerprint": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "last4": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "sort_code": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "fingerprint",
                                  "last4",
                                  "sort_code"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type",
                              "bacs_debit"
                            ],
                            "title": "Bacs debit",
                            "description": "The Bacs debit payment method."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "bank_transfer"
                                ]
                              },
                              "bank_transfer": {
                                "type": "object",
                                "properties": {
                                  "balance": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "financial_addresses": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "sort_code"
                                          ]
                                        },
                                        "sort_code": {
                                          "type": "object",
                                          "properties": {
                                            "account_holder_address": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "properties": {
                                                "line1": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "line2": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "city": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "country": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "postal_code": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "state": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              }
                                            },
                                            "account_holder_name": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "account_number": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "bank_address": {
                                              "type": [
                                                "object",
                                                "null"
                                              ],
                                              "properties": {
                                                "line1": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "line2": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "city": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "country": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "postal_code": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                },
                                                "state": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              }
                                            },
                                            "sort_code": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "account_holder_name",
                                            "account_number",
                                            "sort_code"
                                          ]
                                        },
                                        "supported_networks": {
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "items": {
                                            "type": "string",
                                            "enum": [
                                              "bacs",
                                              "fps"
                                            ]
                                          }
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "sort_code",
                                        "supported_networks"
                                      ]
                                    }
                                  },
                                  "reconciliation_deadline": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "type": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "gb_bank_transfer",
                                      "eu_bank_transfer",
                                      "jp_bank_transfer",
                                      "us_bank_transfer",
                                      "mx_bank_transfer",
                                      null
                                    ]
                                  }
                                },
                                "required": [
                                  "balance",
                                  "country",
                                  "financial_addresses",
                                  "reconciliation_deadline",
                                  "type"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type",
                              "bank_transfer"
                            ],
                            "title": "Bank transfer",
                            "description": "The bank transfer payment method."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "card_present"
                                ]
                              },
                              "card_present": {
                                "type": "object",
                                "properties": {
                                  "brand": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "cardholder_name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "exp_month": {
                                    "type": "number"
                                  },
                                  "exp_year": {
                                    "type": "number"
                                  },
                                  "fingerprint": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "funding": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "enum": [
                                      "credit",
                                      "debit",
                                      "prepaid",
                                      "unknown",
                                      null
                                    ]
                                  },
                                  "last4": {
                                    "type": "string"
                                  },
                                  "read_method": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "terminal": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "brand",
                                  "cardholder_name",
                                  "country",
                                  "exp_month",
                                  "exp_year",
                                  "fingerprint",
                                  "funding",
                                  "last4",
                                  "read_method"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type",
                              "card_present"
                            ],
                            "title": "Card present",
                            "description": "The card present payment method."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "card"
                                ]
                              },
                              "card": {
                                "type": "object",
                                "properties": {
                                  "brand": {
                                    "type": "string"
                                  },
                                  "checks": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "address_line1_check": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "address_postal_code_check": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "cvc_check": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "address_line1_check",
                                      "address_postal_code_check",
                                      "cvc_check"
                                    ]
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "exp_month": {
                                    "type": "number"
                                  },
                                  "exp_year": {
                                    "type": "number"
                                  },
                                  "fingerprint": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "funding": {
                                    "type": "string",
                                    "enum": [
                                      "credit",
                                      "debit",
                                      "prepaid",
                                      "unknown"
                                    ]
                                  },
                                  "last4": {
                                    "type": "string"
                                  },
                                  "three_d_secure_usage": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "supported": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "supported"
                                    ]
                                  },
                                  "wallet": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "amex_express_checkout": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "apple_pay": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "dynamic_last4": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "google_pay": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "link": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "masterpass": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "onemove": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "fees_payer": {
                                            "type": "string",
                                            "enum": [
                                              "account",
                                              "consumer"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "fees_payer"
                                        ]
                                      },
                                      "samsung_pay": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "visa_checkout": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {}
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "amex_express_checkout",
                                          "apple_pay",
                                          "google_pay",
                                          "link",
                                          "masterpass",
                                          "onemove",
                                          "samsung_pay",
                                          "visa_checkout"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ]
                                  }
                                },
                                "required": [
                                  "brand",
                                  "checks",
                                  "country",
                                  "exp_month",
                                  "exp_year",
                                  "fingerprint",
                                  "funding",
                                  "last4",
                                  "three_d_secure_usage",
                                  "wallet"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type",
                              "card"
                            ],
                            "title": "Card",
                            "description": "The card payment method."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "pay_by_bank"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type"
                            ],
                            "title": "Pay by bank",
                            "description": "The pay by bank payment method."
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier for the object."
                              },
                              "created": {
                                "type": "number",
                                "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                              },
                              "account": {
                                "type": "string",
                                "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                              },
                              "deleted": {
                                "type": "boolean",
                                "default": false,
                                "description": "Only returned if the object has been deleted."
                              },
                              "object": {
                                "type": "string",
                                "enum": [
                                  "payment_method"
                                ]
                              },
                              "billing_details": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "address": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "email": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "address",
                                  "email",
                                  "name",
                                  "phone"
                                ]
                              },
                              "customer": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "Unique identifier for the object."
                                      },
                                      "created": {
                                        "type": "number",
                                        "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                      },
                                      "account": {
                                        "type": "string",
                                        "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                      },
                                      "deleted": {
                                        "type": "boolean",
                                        "default": false,
                                        "description": "Only returned if the object has been deleted."
                                      },
                                      "object": {
                                        "type": "string",
                                        "enum": [
                                          "customer"
                                        ]
                                      },
                                      "address": {
                                        "type": "object",
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "default_payment_method": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": {}
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "delinquent": {
                                        "type": "boolean"
                                      },
                                      "description": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "email": {
                                        "type": "string",
                                        "format": "email"
                                      },
                                      "invoice_prefix": {
                                        "type": "string"
                                      },
                                      "invoicing": {
                                        "type": "object",
                                        "properties": {
                                          "arrears_emails": {
                                            "type": "boolean"
                                          },
                                          "email_cc": {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "email"
                                            }
                                          },
                                          "email_to": {
                                            "type": [
                                              "string",
                                              "null"
                                            ],
                                            "format": "email"
                                          }
                                        },
                                        "required": [
                                          "arrears_emails",
                                          "email_cc"
                                        ]
                                      },
                                      "legal": {
                                        "type": "object",
                                        "properties": {
                                          "dob": {
                                            "type": "object",
                                            "properties": {
                                              "day": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 31
                                              },
                                              "month": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1,
                                                "maximum": 12
                                              },
                                              "year": {
                                                "type": [
                                                  "number",
                                                  "null"
                                                ],
                                                "minimum": 1900,
                                                "maximum": 9999
                                              }
                                            },
                                            "required": [
                                              "day",
                                              "month",
                                              "year"
                                            ]
                                          },
                                          "first_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "last_name": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "dob",
                                          "first_name",
                                          "last_name"
                                        ]
                                      },
                                      "metadata": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "additionalProperties": {
                                          "type": "string"
                                        },
                                        "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                      },
                                      "name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "phone": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "radar": {
                                        "type": "object",
                                        "properties": {
                                          "message": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "reason": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "risk_level": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "message",
                                          "reason",
                                          "risk_level"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "id",
                                      "created",
                                      "object",
                                      "address",
                                      "default_payment_method",
                                      "delinquent",
                                      "description",
                                      "email",
                                      "invoice_prefix",
                                      "invoicing",
                                      "legal",
                                      "name",
                                      "phone",
                                      "radar"
                                    ]
                                  }
                                ]
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "enum": [
                                  "chargeable",
                                  "pending",
                                  "failed",
                                  null
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "sepa_debit"
                                ]
                              },
                              "sepa_debit": {
                                "type": "object",
                                "properties": {
                                  "bank_code": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "branch_code": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "country": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "fingerprint": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "last4": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "bank_code",
                                  "branch_code",
                                  "country",
                                  "fingerprint",
                                  "last4"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "created",
                              "object",
                              "billing_details",
                              "customer",
                              "status",
                              "type",
                              "sepa_debit"
                            ],
                            "title": "Sepa debit",
                            "description": "The sepa debit payment method."
                          }
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_methods/{id}": {
      "get": {
        "operationId": "payment_methods_retrieve",
        "summary": "Retrieve a payment method",
        "description": "Retrieves a payment method with the given ID.",
        "tags": [
          "Payment Methods"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a payment method object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        },
                        "bacs_debit": {
                          "type": "object",
                          "properties": {
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sort_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "fingerprint",
                            "last4",
                            "sort_code"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bacs_debit"
                      ],
                      "title": "Bacs debit",
                      "description": "The Bacs debit payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bank_transfer"
                          ]
                        },
                        "bank_transfer": {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "financial_addresses": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "sort_code"
                                    ]
                                  },
                                  "sort_code": {
                                    "type": "object",
                                    "properties": {
                                      "account_holder_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "account_holder_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account_number": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "bank_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "sort_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_holder_name",
                                      "account_number",
                                      "sort_code"
                                    ]
                                  },
                                  "supported_networks": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bacs",
                                        "fps"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "sort_code",
                                  "supported_networks"
                                ]
                              }
                            },
                            "reconciliation_deadline": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "gb_bank_transfer",
                                "eu_bank_transfer",
                                "jp_bank_transfer",
                                "us_bank_transfer",
                                "mx_bank_transfer",
                                null
                              ]
                            }
                          },
                          "required": [
                            "balance",
                            "country",
                            "financial_addresses",
                            "reconciliation_deadline",
                            "type"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bank_transfer"
                      ],
                      "title": "Bank transfer",
                      "description": "The bank transfer payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card_present"
                          ]
                        },
                        "card_present": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "cardholder_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown",
                                null
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "read_method": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "terminal": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "cardholder_name",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "read_method"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card_present"
                      ],
                      "title": "Card present",
                      "description": "The card present payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card"
                          ]
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "checks": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address_line1_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "address_postal_code_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "cvc_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address_line1_check",
                                "address_postal_code_check",
                                "cvc_check"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": "string",
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown"
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "three_d_secure_usage": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "supported": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "supported"
                              ]
                            },
                            "wallet": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amex_express_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "apple_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "dynamic_last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "google_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "link": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "masterpass": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "onemove": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "fees_payer": {
                                      "type": "string",
                                      "enum": [
                                        "account",
                                        "consumer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "fees_payer"
                                  ]
                                },
                                "samsung_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "visa_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "amex_express_checkout",
                                    "apple_pay",
                                    "google_pay",
                                    "link",
                                    "masterpass",
                                    "onemove",
                                    "samsung_pay",
                                    "visa_checkout"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "checks",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "three_d_secure_usage",
                            "wallet"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card"
                      ],
                      "title": "Card",
                      "description": "The card payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "pay_by_bank"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type"
                      ],
                      "title": "Pay by bank",
                      "description": "The pay by bank payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "sepa_debit"
                          ]
                        },
                        "sepa_debit": {
                          "type": "object",
                          "properties": {
                            "bank_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "branch_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "bank_code",
                            "branch_code",
                            "country",
                            "fingerprint",
                            "last4"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "sepa_debit"
                      ],
                      "title": "Sepa debit",
                      "description": "The sepa debit payment method."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_methods/{id}/fund_bank_transfer": {
      "post": {
        "operationId": "payment_methods_fund_bank_transfer",
        "summary": "Simulate a bank transfer",
        "description": "Simulates an external bank transfer and adds funds to the payment method's balance. This method can only be called in test mode.",
        "tags": [
          "Payment Methods"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a payment method object if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        },
                        "bacs_debit": {
                          "type": "object",
                          "properties": {
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sort_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "fingerprint",
                            "last4",
                            "sort_code"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bacs_debit"
                      ],
                      "title": "Bacs debit",
                      "description": "The Bacs debit payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bank_transfer"
                          ]
                        },
                        "bank_transfer": {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "financial_addresses": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "sort_code"
                                    ]
                                  },
                                  "sort_code": {
                                    "type": "object",
                                    "properties": {
                                      "account_holder_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "account_holder_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account_number": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "bank_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "sort_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_holder_name",
                                      "account_number",
                                      "sort_code"
                                    ]
                                  },
                                  "supported_networks": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bacs",
                                        "fps"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "sort_code",
                                  "supported_networks"
                                ]
                              }
                            },
                            "reconciliation_deadline": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "gb_bank_transfer",
                                "eu_bank_transfer",
                                "jp_bank_transfer",
                                "us_bank_transfer",
                                "mx_bank_transfer",
                                null
                              ]
                            }
                          },
                          "required": [
                            "balance",
                            "country",
                            "financial_addresses",
                            "reconciliation_deadline",
                            "type"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bank_transfer"
                      ],
                      "title": "Bank transfer",
                      "description": "The bank transfer payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card_present"
                          ]
                        },
                        "card_present": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "cardholder_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown",
                                null
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "read_method": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "terminal": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "cardholder_name",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "read_method"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card_present"
                      ],
                      "title": "Card present",
                      "description": "The card present payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card"
                          ]
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "checks": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address_line1_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "address_postal_code_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "cvc_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address_line1_check",
                                "address_postal_code_check",
                                "cvc_check"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": "string",
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown"
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "three_d_secure_usage": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "supported": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "supported"
                              ]
                            },
                            "wallet": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amex_express_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "apple_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "dynamic_last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "google_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "link": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "masterpass": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "onemove": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "fees_payer": {
                                      "type": "string",
                                      "enum": [
                                        "account",
                                        "consumer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "fees_payer"
                                  ]
                                },
                                "samsung_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "visa_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "amex_express_checkout",
                                    "apple_pay",
                                    "google_pay",
                                    "link",
                                    "masterpass",
                                    "onemove",
                                    "samsung_pay",
                                    "visa_checkout"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "checks",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "three_d_secure_usage",
                            "wallet"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card"
                      ],
                      "title": "Card",
                      "description": "The card payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "pay_by_bank"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type"
                      ],
                      "title": "Pay by bank",
                      "description": "The pay by bank payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "sepa_debit"
                          ]
                        },
                        "sepa_debit": {
                          "type": "object",
                          "properties": {
                            "bank_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "branch_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "bank_code",
                            "branch_code",
                            "country",
                            "fingerprint",
                            "last4"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "sepa_debit"
                      ],
                      "title": "Sepa debit",
                      "description": "The sepa debit payment method."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_methods/setup": {
      "post": {
        "operationId": "payment_methods_setup",
        "summary": "Set up a payment method",
        "description": "Creates a setup intent for collecting payment method details.",
        "tags": [
          "Payment Methods"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consumer_user_link": {
                    "type": "string"
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "single_use": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "autogiro",
                      "bacs_debit",
                      "bank_transfer",
                      "card",
                      "onemove",
                      "pay_by_bank",
                      "sepa_debit"
                    ]
                  },
                  "use_yorlet_sdk": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a setup object if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        },
                        "bacs_debit": {
                          "type": "object",
                          "properties": {
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sort_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "fingerprint",
                            "last4",
                            "sort_code"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bacs_debit"
                      ],
                      "title": "Bacs debit",
                      "description": "The Bacs debit payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "bank_transfer"
                          ]
                        },
                        "bank_transfer": {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "financial_addresses": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "sort_code"
                                    ]
                                  },
                                  "sort_code": {
                                    "type": "object",
                                    "properties": {
                                      "account_holder_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "account_holder_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account_number": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "bank_address": {
                                        "type": [
                                          "object",
                                          "null"
                                        ],
                                        "properties": {
                                          "line1": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "line2": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "city": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "country": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "postal_code": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "state": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          }
                                        }
                                      },
                                      "sort_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "account_holder_name",
                                      "account_number",
                                      "sort_code"
                                    ]
                                  },
                                  "supported_networks": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "bacs",
                                        "fps"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "sort_code",
                                  "supported_networks"
                                ]
                              }
                            },
                            "reconciliation_deadline": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "type": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "gb_bank_transfer",
                                "eu_bank_transfer",
                                "jp_bank_transfer",
                                "us_bank_transfer",
                                "mx_bank_transfer",
                                null
                              ]
                            }
                          },
                          "required": [
                            "balance",
                            "country",
                            "financial_addresses",
                            "reconciliation_deadline",
                            "type"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "bank_transfer"
                      ],
                      "title": "Bank transfer",
                      "description": "The bank transfer payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card_present"
                          ]
                        },
                        "card_present": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "cardholder_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown",
                                null
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "read_method": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "terminal": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "cardholder_name",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "read_method"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card_present"
                      ],
                      "title": "Card present",
                      "description": "The card present payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "card"
                          ]
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "type": "string"
                            },
                            "checks": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "address_line1_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "address_postal_code_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "cvc_check": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "address_line1_check",
                                "address_postal_code_check",
                                "cvc_check"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "exp_month": {
                              "type": "number"
                            },
                            "exp_year": {
                              "type": "number"
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "funding": {
                              "type": "string",
                              "enum": [
                                "credit",
                                "debit",
                                "prepaid",
                                "unknown"
                              ]
                            },
                            "last4": {
                              "type": "string"
                            },
                            "three_d_secure_usage": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "supported": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "supported"
                              ]
                            },
                            "wallet": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "amex_express_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "apple_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "dynamic_last4": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "google_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "link": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "masterpass": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "onemove": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "properties": {
                                    "fees_payer": {
                                      "type": "string",
                                      "enum": [
                                        "account",
                                        "consumer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "fees_payer"
                                  ]
                                },
                                "samsung_pay": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "visa_checkout": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {}
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "amex_express_checkout",
                                    "apple_pay",
                                    "google_pay",
                                    "link",
                                    "masterpass",
                                    "onemove",
                                    "samsung_pay",
                                    "visa_checkout"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "checks",
                            "country",
                            "exp_month",
                            "exp_year",
                            "fingerprint",
                            "funding",
                            "last4",
                            "three_d_secure_usage",
                            "wallet"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "card"
                      ],
                      "title": "Card",
                      "description": "The card payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "pay_by_bank"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type"
                      ],
                      "title": "Pay by bank",
                      "description": "The pay by bank payment method."
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier for the object."
                        },
                        "created": {
                          "type": "number",
                          "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                        },
                        "account": {
                          "type": "string",
                          "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                        },
                        "deleted": {
                          "type": "boolean",
                          "default": false,
                          "description": "Only returned if the object has been deleted."
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "payment_method"
                          ]
                        },
                        "billing_details": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "address": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "email": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "address",
                            "email",
                            "name",
                            "phone"
                          ]
                        },
                        "customer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "Unique identifier for the object."
                                },
                                "created": {
                                  "type": "number",
                                  "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                },
                                "account": {
                                  "type": "string",
                                  "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                },
                                "deleted": {
                                  "type": "boolean",
                                  "default": false,
                                  "description": "Only returned if the object has been deleted."
                                },
                                "object": {
                                  "type": "string",
                                  "enum": [
                                    "customer"
                                  ]
                                },
                                "address": {
                                  "type": "object",
                                  "properties": {
                                    "line1": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "line2": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "city": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "country": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "postal_code": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "state": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "default_payment_method": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": {}
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "delinquent": {
                                  "type": "boolean"
                                },
                                "description": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "email": {
                                  "type": "string",
                                  "format": "email"
                                },
                                "invoice_prefix": {
                                  "type": "string"
                                },
                                "invoicing": {
                                  "type": "object",
                                  "properties": {
                                    "arrears_emails": {
                                      "type": "boolean"
                                    },
                                    "email_cc": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "email"
                                      }
                                    },
                                    "email_to": {
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "format": "email"
                                    }
                                  },
                                  "required": [
                                    "arrears_emails",
                                    "email_cc"
                                  ]
                                },
                                "legal": {
                                  "type": "object",
                                  "properties": {
                                    "dob": {
                                      "type": "object",
                                      "properties": {
                                        "day": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 31
                                        },
                                        "month": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1,
                                          "maximum": 12
                                        },
                                        "year": {
                                          "type": [
                                            "number",
                                            "null"
                                          ],
                                          "minimum": 1900,
                                          "maximum": 9999
                                        }
                                      },
                                      "required": [
                                        "day",
                                        "month",
                                        "year"
                                      ]
                                    },
                                    "first_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "last_name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "dob",
                                    "first_name",
                                    "last_name"
                                  ]
                                },
                                "metadata": {
                                  "type": [
                                    "object",
                                    "null"
                                  ],
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "phone": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "radar": {
                                  "type": "object",
                                  "properties": {
                                    "message": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "reason": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "risk_level": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "message",
                                    "reason",
                                    "risk_level"
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "created",
                                "object",
                                "address",
                                "default_payment_method",
                                "delinquent",
                                "description",
                                "email",
                                "invoice_prefix",
                                "invoicing",
                                "legal",
                                "name",
                                "phone",
                                "radar"
                              ]
                            }
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "chargeable",
                            "pending",
                            "failed",
                            null
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "sepa_debit"
                          ]
                        },
                        "sepa_debit": {
                          "type": "object",
                          "properties": {
                            "bank_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "branch_code": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "country": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fingerprint": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "last4": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "bank_code",
                            "branch_code",
                            "country",
                            "fingerprint",
                            "last4"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "created",
                        "object",
                        "billing_details",
                        "customer",
                        "status",
                        "type",
                        "sepa_debit"
                      ],
                      "title": "Sepa debit",
                      "description": "The sepa debit payment method."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_sessions": {
      "post": {
        "operationId": "payment_sessions_create",
        "summary": "Create a payment session",
        "description": "Creates a new payment session.",
        "tags": [
          "Payment Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 99999900,
                    "description": "The amount to charge. Should be a positive integer in the smallest currency unit (e.g. 100 for £1.00)."
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "gbp",
                      "eur",
                      "usd"
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer the transaction is for."
                  },
                  "description": {
                    "type": "string",
                    "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "payment"
                    ]
                  },
                  "payment_method_options": {
                    "type": "object",
                    "properties": {},
                    "description": "Payment method configuration options."
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "minItems": 1
                  },
                  "reporting_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "advance_rent",
                      "charge",
                      "deposit",
                      "holding_fee",
                      "rent",
                      null
                    ],
                    "description": "The reporting type of the transaction."
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "The URL to redirect the user to after the transaction is complete."
                  },
                  "send_email": {
                    "type": "boolean",
                    "description": "Send the URL to the customer email address."
                  },
                  "statement_descriptor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The statement descriptor that will appear on customers bank statement."
                  },
                  "transaction_data": {
                    "type": "object",
                    "properties": {
                      "customer_balance": {
                        "type": "object",
                        "properties": {
                          "apply": {
                            "type": "boolean",
                            "description": "Whether to apply the transaction amount to the customer's balance."
                          },
                          "description": {
                            "type": "string",
                            "description": "A description of the transaction to be applied to the customer's balance."
                          }
                        },
                        "required": [
                          "apply"
                        ],
                        "description": "A hash containing information about the customer balance options."
                      },
                      "transfer_data": {
                        "type": "object",
                        "properties": {
                          "use_unit_ownership": {
                            "type": "boolean",
                            "description": "If a unit ID is supplied, transfers will be created based on the unit's ownership."
                          }
                        }
                      },
                      "unit": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "The ID of the unit."
                      }
                    },
                    "description": "A subset of parameters to be passed to transaction creation."
                  }
                },
                "required": [
                  "amount",
                  "currency",
                  "customer",
                  "mode",
                  "payment_method_types"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the payment session object if the request succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_session"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "payment"
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "reporting_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "unpaid",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "currency",
                    "customer",
                    "description",
                    "mode",
                    "payment_method_types",
                    "reporting_type",
                    "return_url",
                    "status",
                    "transaction",
                    "url"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "payment_sessions_list",
        "summary": "List all payment sessions",
        "description": "Returns a list of payment sessions. The payment sessions are returned sorted by creation date, with the most recent payment sessions appearing first.",
        "tags": [
          "Payment Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A object with a data property that contains an array of payment sessions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "payment_session"
                            ]
                          },
                          "amount": {
                            "type": "number"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "merchant": {
                            "type": "object",
                            "properties": {
                              "business_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "color": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "country": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "display_name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "icon": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "id": {
                                "type": "string"
                              },
                              "support_email": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "support_phone": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "support_website": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "business_name",
                              "color",
                              "country",
                              "display_name",
                              "icon",
                              "id",
                              "support_email",
                              "support_phone",
                              "support_website"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "payment"
                            ]
                          },
                          "payment_method_types": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "reporting_type": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "return_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "paid",
                              "unpaid",
                              "canceled"
                            ]
                          },
                          "transaction": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          },
                          "url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "currency",
                          "customer",
                          "description",
                          "mode",
                          "payment_method_types",
                          "reporting_type",
                          "return_url",
                          "status",
                          "transaction",
                          "url"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_sessions/{id}": {
      "get": {
        "operationId": "payment_sessions_retrieve",
        "summary": "Retrieve a payment session",
        "description": "Retrieves the payment session with the given ID.",
        "tags": [
          "Payment Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a payment session object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_session"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "payment"
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "reporting_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "unpaid",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "currency",
                    "customer",
                    "description",
                    "mode",
                    "payment_method_types",
                    "reporting_type",
                    "return_url",
                    "status",
                    "transaction",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/payment_sessions/{id}/cancel": {
      "post": {
        "operationId": "payment_sessions_cancel",
        "summary": "Cancel a payment session",
        "description": "Cancels the payment session with the given ID.",
        "tags": [
          "Payment Sessions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a canceled payment session object if a valid identifier was provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "payment_session"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "merchant": {
                      "type": "object",
                      "properties": {
                        "business_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "color": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "display_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icon": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "support_email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "support_website": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "business_name",
                        "color",
                        "country",
                        "display_name",
                        "icon",
                        "id",
                        "support_email",
                        "support_phone",
                        "support_website"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "payment"
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "reporting_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "return_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "unpaid",
                        "canceled"
                      ]
                    },
                    "transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "currency",
                    "customer",
                    "description",
                    "mode",
                    "payment_method_types",
                    "reporting_type",
                    "return_url",
                    "status",
                    "transaction",
                    "url"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/refunds": {
      "post": {
        "operationId": "refunds_create",
        "summary": "Create a refund",
        "description": "Create a refund for a transaction.",
        "tags": [
          "Refunds"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 99999900
                  },
                  "metadata": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "duplicate",
                      "fraudulent",
                      "requested_by_customer",
                      null
                    ]
                  },
                  "reason_description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reverse_transfer": {
                    "type": "boolean"
                  },
                  "transaction": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9_]+$"
                  }
                },
                "required": [
                  "transaction"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created refund.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "refund"
                      ]
                    },
                    "amount": {
                      "type": "integer"
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fee": {
                              "type": "integer"
                            },
                            "fee_details": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "tax": {
                                    "type": "integer"
                                  },
                                  "tax_percent": {
                                    "type": "number"
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "description",
                                  "tax",
                                  "tax_percent",
                                  "type"
                                ]
                              }
                            },
                            "net": {
                              "type": "integer"
                            },
                            "payout": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_object": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "adjustment",
                                "charge",
                                "fee",
                                "payment",
                                "payout",
                                "refund",
                                "transfer"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "fee",
                            "fee_details",
                            "net",
                            "payout",
                            "source",
                            "source_object",
                            "type"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason_description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reverse_transfer": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "transaction": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "balance_transaction",
                    "currency",
                    "customer",
                    "description",
                    "reason",
                    "reason_description",
                    "reverse_transfer",
                    "status",
                    "transaction"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "refunds_list",
        "summary": "List all refunds",
        "description": "List all refunds.",
        "tags": [
          "Refunds"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A dictionary with a data property that contains an array of up to limit refunds. Each entry in the array is a separate refund object. If no more refunds are available, the resulting array will be empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "refund"
                            ]
                          },
                          "amount": {
                            "type": "integer"
                          },
                          "balance_transaction": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "balance_transaction"
                                    ]
                                  },
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "available_on": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Must be a Unix timestamp in UTC time."
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "fee": {
                                    "type": "integer"
                                  },
                                  "fee_details": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "integer"
                                        },
                                        "description": {
                                          "type": "string"
                                        },
                                        "tax": {
                                          "type": "integer"
                                        },
                                        "tax_percent": {
                                          "type": "number"
                                        },
                                        "type": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "description",
                                        "tax",
                                        "tax_percent",
                                        "type"
                                      ]
                                    }
                                  },
                                  "net": {
                                    "type": "integer"
                                  },
                                  "payout": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "source": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "source_object": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "adjustment",
                                      "charge",
                                      "fee",
                                      "payment",
                                      "payout",
                                      "refund",
                                      "transfer"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "amount",
                                  "available_on",
                                  "currency",
                                  "description",
                                  "fee",
                                  "fee_details",
                                  "net",
                                  "payout",
                                  "source",
                                  "source_object",
                                  "type"
                                ]
                              },
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "Unique identifier for the object."
                                  },
                                  "created": {
                                    "type": "number",
                                    "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                                  },
                                  "account": {
                                    "type": "string",
                                    "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                                  },
                                  "deleted": {
                                    "type": "boolean",
                                    "default": false,
                                    "description": "Only returned if the object has been deleted."
                                  },
                                  "object": {
                                    "type": "string",
                                    "enum": [
                                      "customer"
                                    ]
                                  },
                                  "address": {
                                    "type": "object",
                                    "properties": {
                                      "line1": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "line2": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "city": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "country": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "postal_code": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "state": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  "default_payment_method": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "object",
                                        "additionalProperties": {}
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "delinquent": {
                                    "type": "boolean"
                                  },
                                  "description": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "email": {
                                    "type": "string",
                                    "format": "email"
                                  },
                                  "invoice_prefix": {
                                    "type": "string"
                                  },
                                  "invoicing": {
                                    "type": "object",
                                    "properties": {
                                      "arrears_emails": {
                                        "type": "boolean"
                                      },
                                      "email_cc": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "email"
                                        }
                                      },
                                      "email_to": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "format": "email"
                                      }
                                    },
                                    "required": [
                                      "arrears_emails",
                                      "email_cc"
                                    ]
                                  },
                                  "legal": {
                                    "type": "object",
                                    "properties": {
                                      "dob": {
                                        "type": "object",
                                        "properties": {
                                          "day": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 31
                                          },
                                          "month": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1,
                                            "maximum": 12
                                          },
                                          "year": {
                                            "type": [
                                              "number",
                                              "null"
                                            ],
                                            "minimum": 1900,
                                            "maximum": 9999
                                          }
                                        },
                                        "required": [
                                          "day",
                                          "month",
                                          "year"
                                        ]
                                      },
                                      "first_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "last_name": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "dob",
                                      "first_name",
                                      "last_name"
                                    ]
                                  },
                                  "metadata": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "radar": {
                                    "type": "object",
                                    "properties": {
                                      "message": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "reason": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "risk_level": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "message",
                                      "reason",
                                      "risk_level"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "created",
                                  "object",
                                  "address",
                                  "default_payment_method",
                                  "delinquent",
                                  "description",
                                  "email",
                                  "invoice_prefix",
                                  "invoicing",
                                  "legal",
                                  "name",
                                  "phone",
                                  "radar"
                                ]
                              },
                              {
                                "type": "string"
                              }
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "reason_description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "reverse_transfer": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string"
                          },
                          "transaction": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "amount",
                          "balance_transaction",
                          "currency",
                          "customer",
                          "description",
                          "reason",
                          "reason_description",
                          "reverse_transfer",
                          "status",
                          "transaction"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/refunds/{id}": {
      "get": {
        "operationId": "refunds_retrieve",
        "summary": "Retrieve a refund",
        "description": "Retrieve a refund by ID.",
        "tags": [
          "Refunds"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the retrieved refund.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "refund"
                      ]
                    },
                    "amount": {
                      "type": "integer"
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "balance_transaction"
                              ]
                            },
                            "amount": {
                              "type": "integer"
                            },
                            "available_on": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Must be a Unix timestamp in UTC time."
                            },
                            "currency": {
                              "type": "string"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "fee": {
                              "type": "integer"
                            },
                            "fee_details": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "integer"
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "tax": {
                                    "type": "integer"
                                  },
                                  "tax_percent": {
                                    "type": "number"
                                  },
                                  "type": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount",
                                  "description",
                                  "tax",
                                  "tax_percent",
                                  "type"
                                ]
                              }
                            },
                            "net": {
                              "type": "integer"
                            },
                            "payout": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source_object": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "adjustment",
                                "charge",
                                "fee",
                                "payment",
                                "payout",
                                "refund",
                                "transfer"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "amount",
                            "available_on",
                            "currency",
                            "description",
                            "fee",
                            "fee_details",
                            "net",
                            "payout",
                            "source",
                            "source_object",
                            "type"
                          ]
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier for the object."
                            },
                            "created": {
                              "type": "number",
                              "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                            },
                            "account": {
                              "type": "string",
                              "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                            },
                            "deleted": {
                              "type": "boolean",
                              "default": false,
                              "description": "Only returned if the object has been deleted."
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "customer"
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "line2": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "city": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "country": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "postal_code": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "state": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "default_payment_method": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "delinquent": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "email": {
                              "type": "string",
                              "format": "email"
                            },
                            "invoice_prefix": {
                              "type": "string"
                            },
                            "invoicing": {
                              "type": "object",
                              "properties": {
                                "arrears_emails": {
                                  "type": "boolean"
                                },
                                "email_cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "email"
                                  }
                                },
                                "email_to": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "format": "email"
                                }
                              },
                              "required": [
                                "arrears_emails",
                                "email_cc"
                              ]
                            },
                            "legal": {
                              "type": "object",
                              "properties": {
                                "dob": {
                                  "type": "object",
                                  "properties": {
                                    "day": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 31
                                    },
                                    "month": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1,
                                      "maximum": 12
                                    },
                                    "year": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "minimum": 1900,
                                      "maximum": 9999
                                    }
                                  },
                                  "required": [
                                    "day",
                                    "month",
                                    "year"
                                  ]
                                },
                                "first_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "last_name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "dob",
                                "first_name",
                                "last_name"
                              ]
                            },
                            "metadata": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "phone": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "radar": {
                              "type": "object",
                              "properties": {
                                "message": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "risk_level": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "message",
                                "reason",
                                "risk_level"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "created",
                            "object",
                            "address",
                            "default_payment_method",
                            "delinquent",
                            "description",
                            "email",
                            "invoice_prefix",
                            "invoicing",
                            "legal",
                            "name",
                            "phone",
                            "radar"
                          ]
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reason_description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "reverse_transfer": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "transaction": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "amount",
                    "balance_transaction",
                    "currency",
                    "customer",
                    "description",
                    "reason",
                    "reason_description",
                    "reverse_transfer",
                    "status",
                    "transaction"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions": {
      "post": {
        "operationId": "transactions_create",
        "summary": "Create a transaction",
        "description": "Create a transaction",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "application": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The ID of the application the transaction is for."
                  },
                  "application_payment_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "advance_rent",
                      "deposit",
                      "holding_fee",
                      "partial_payment",
                      null
                    ],
                    "description": "The application payment type. Only allowed if the supplied application is open."
                  },
                  "amount": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "minimum": 1,
                    "maximum": 99999900,
                    "description": "The amount to charge. Should be a positive integer in the smallest currency unit (e.g. 100 for £1.00). The amount is required if you do not supply an application and application_payment_type."
                  },
                  "capture_method": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual"
                    ]
                  },
                  "confirm": {
                    "type": "boolean",
                    "default": false
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "gbp",
                      "eur",
                      "usd",
                      null
                    ],
                    "description": "Three-letter ISO currency code, in lowercase. Must be a supported currency."
                  },
                  "customer_balance": {
                    "type": "object",
                    "properties": {
                      "apply": {
                        "type": "boolean",
                        "default": false,
                        "description": "Whether to apply the transaction amount to the customer's balance."
                      },
                      "description": {
                        "type": "string",
                        "description": "A description of the transaction to be applied to the customer's balance."
                      }
                    },
                    "description": "A hash containing information about the customer balance options."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The ID of the customer the transaction is for."
                  },
                  "description": {
                    "type": "string",
                    "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                  },
                  "invoice": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                  },
                  "off_session": {
                    "type": "boolean",
                    "default": false
                  },
                  "payment_method": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "minItems": 1,
                    "description": "The payment method types allowed for this transaction."
                  },
                  "reporting_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "advance_rent",
                      "charge",
                      "deposit",
                      "holding_fee",
                      "rent",
                      null
                    ],
                    "description": "The reporting type of the transaction. Only allowed if you don't supply an application ID."
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "The URL to redirect the user to if the transaction requires additional action to complete."
                  },
                  "send_receipt_email": {
                    "type": "boolean",
                    "default": true
                  },
                  "statement_descriptor": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The statement descriptor that will appear on customers bank statement. Only allowed if you don't supply an application payment type."
                  },
                  "unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The ID of the unit. Only allowed if you don't supply an application ID."
                  },
                  "workspace": {
                    "type": "string"
                  }
                },
                "required": [
                  "customer",
                  "payment_method_types"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "transactions_list",
        "summary": "List all transactions",
        "description": "List all transactions",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "A dictionary with a data property that contains an array of up to limit transactions. Each entry in the array is a separate transaction object. If no more transactions are available, the resulting array will be empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "number",
                      "description": "Total number of items in the list.",
                      "example": 1
                    },
                    "has_more": {
                      "type": "boolean",
                      "description": "Whether more items are available.",
                      "example": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier for the object."
                          },
                          "created": {
                            "type": "number",
                            "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                          },
                          "account": {
                            "type": "string",
                            "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                          },
                          "deleted": {
                            "type": "boolean",
                            "default": false,
                            "description": "Only returned if the object has been deleted."
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "transaction"
                            ]
                          },
                          "adaptive_pricing": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "localized_prices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": "number"
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "presentment_exchange_rate": {
                                      "type": [
                                        "object",
                                        "null"
                                      ],
                                      "properties": {
                                        "currency": {
                                          "type": "string"
                                        },
                                        "exchange_rate": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "currency",
                                        "exchange_rate"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "amount",
                                    "currency",
                                    "presentment_exchange_rate"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "localized_prices"
                            ]
                          },
                          "amount": {
                            "type": "number"
                          },
                          "amount_refunded": {
                            "type": "number",
                            "default": 0
                          },
                          "application": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "balance_transaction": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "capture_method": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "enum": [
                              "automatic",
                              "manual",
                              null
                            ]
                          },
                          "client_secret": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "confirmed_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "cross_border": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "enabled": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "amount",
                              "enabled"
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "customer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              }
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "dispute": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "disputed": {
                            "type": "boolean",
                            "default": false
                          },
                          "invoice": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "last_payment_error": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "code": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The code of the latest payment error."
                              },
                              "failed_at": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "The Unix timestamp of the last payment error."
                              },
                              "message": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The message of the latest payment error."
                              }
                            },
                            "required": [
                              "code",
                              "failed_at",
                              "message"
                            ]
                          },
                          "metadata": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                          },
                          "next_action": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "redirect_to_url"
                                    ]
                                  },
                                  "redirect_to_url": {
                                    "type": "object",
                                    "properties": {
                                      "url": {
                                        "type": "string",
                                        "format": "uri"
                                      }
                                    },
                                    "required": [
                                      "url"
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "redirect_to_url"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "use_yorlet_sdk"
                                    ]
                                  },
                                  "use_yorlet_sdk": {
                                    "type": "object",
                                    "properties": {
                                      "payment_initiation": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "payment_initiation"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "payment_initiation",
                                      "type"
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "use_yorlet_sdk"
                                ]
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "use_stripe_sdk"
                                    ]
                                  },
                                  "use_stripe_sdk": {
                                    "type": "object",
                                    "additionalProperties": {}
                                  }
                                },
                                "required": [
                                  "type",
                                  "use_stripe_sdk"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "paid_at": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "payment_method": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "payment_method_types": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "payment_session": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "object",
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "presentment_details": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ]
                          },
                          "processing": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "bacs_debit"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ]
                          },
                          "receipt_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "refunded": {
                            "type": "boolean",
                            "default": false
                          },
                          "reporting_type": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "requires_payment_method",
                              "requires_confirmation",
                              "requires_action",
                              "processing",
                              "canceled",
                              "succeeded"
                            ]
                          },
                          "transfer_group": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "created",
                          "object",
                          "adaptive_pricing",
                          "amount",
                          "application",
                          "balance_transaction",
                          "capture_method",
                          "client_secret",
                          "confirmed_at",
                          "cross_border",
                          "currency",
                          "customer",
                          "description",
                          "dispute",
                          "invoice",
                          "last_payment_error",
                          "next_action",
                          "paid_at",
                          "payment_method",
                          "payment_method_types",
                          "payment_session",
                          "presentment_details",
                          "processing",
                          "receipt_url",
                          "reporting_type",
                          "status",
                          "transfer_group"
                        ]
                      }
                    }
                  },
                  "required": [
                    "count",
                    "has_more",
                    "object",
                    "data"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}": {
      "get": {
        "operationId": "transactions_retrieve",
        "summary": "Retrieve a transaction",
        "description": "Retrieve a transaction",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the retrieved transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "transactions_update",
        "summary": "Update a transaction",
        "description": "Update a transaction",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "description": "An arbitrary string attached to the object. Often useful for displaying to users."
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "description": "The payment method types allowed for this transaction."
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/cancel": {
      "post": {
        "operationId": "transactions_cancel",
        "summary": "Cancel a transaction",
        "description": "Cancels the transaction.",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a transaction object if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/confirm": {
      "post": {
        "operationId": "transactions_confirm",
        "summary": "Confirm a transaction",
        "description": "Confirms the transaction.",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consumer_user_link": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "off_session": {
                    "type": "boolean",
                    "default": false
                  },
                  "payment_method": {
                    "type": "string"
                  },
                  "payment_method_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "autogiro",
                        "bacs_debit",
                        "card",
                        "card_present",
                        "bank_transfer",
                        "direct_transfer",
                        "gbp_credit_transfer",
                        "pay_by_bank",
                        "sepa_debit"
                      ]
                    },
                    "description": "The payment method types allowed for this transaction."
                  },
                  "return_url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a transaction object if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/resend_receipt": {
      "post": {
        "operationId": "transactions_resend-receipt",
        "summary": "Resend a receipt for a transaction",
        "description": "Resend a receipt for a transaction",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the resend receipt for a transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v1/transactions/{id}/terminal_handoff": {
      "post": {
        "operationId": "transactions_terminal-handoff",
        "summary": "Terminal handoff for a transaction",
        "description": "Terminal handoff for a transaction",
        "tags": [
          "Transactions"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The id identifier."
            },
            "required": true,
            "description": "The id identifier.",
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the terminal handoff for a transaction.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier for the object."
                    },
                    "created": {
                      "type": "number",
                      "description": "Time at which the object was created. Measured in seconds since the Unix epoch."
                    },
                    "account": {
                      "type": "string",
                      "description": "The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header."
                    },
                    "deleted": {
                      "type": "boolean",
                      "default": false,
                      "description": "Only returned if the object has been deleted."
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "transaction"
                      ]
                    },
                    "adaptive_pricing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "localized_prices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number"
                              },
                              "currency": {
                                "type": "string"
                              },
                              "presentment_exchange_rate": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "currency": {
                                    "type": "string"
                                  },
                                  "exchange_rate": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "currency",
                                  "exchange_rate"
                                ]
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "presentment_exchange_rate"
                            ]
                          }
                        }
                      },
                      "required": [
                        "localized_prices"
                      ]
                    },
                    "amount": {
                      "type": "number"
                    },
                    "amount_refunded": {
                      "type": "number",
                      "default": 0
                    },
                    "application": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "balance_transaction": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "capture_method": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "automatic",
                        "manual",
                        null
                      ]
                    },
                    "client_secret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confirmed_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "cross_border": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "amount",
                        "enabled"
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "customer": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "dispute": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disputed": {
                      "type": "boolean",
                      "default": false
                    },
                    "invoice": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_payment_error": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The code of the latest payment error."
                        },
                        "failed_at": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "The Unix timestamp of the last payment error."
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The message of the latest payment error."
                        }
                      },
                      "required": [
                        "code",
                        "failed_at",
                        "message"
                      ]
                    },
                    "metadata": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format."
                    },
                    "next_action": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "redirect_to_url"
                              ]
                            },
                            "redirect_to_url": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "required": [
                                "url"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "redirect_to_url"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_yorlet_sdk"
                              ]
                            },
                            "use_yorlet_sdk": {
                              "type": "object",
                              "properties": {
                                "payment_initiation": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "payment_initiation"
                                  ]
                                }
                              },
                              "required": [
                                "payment_initiation",
                                "type"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "use_yorlet_sdk"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "use_stripe_sdk"
                              ]
                            },
                            "use_stripe_sdk": {
                              "type": "object",
                              "additionalProperties": {}
                            }
                          },
                          "required": [
                            "type",
                            "use_stripe_sdk"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "paid_at": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "payment_method": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "payment_method_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "payment_session": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "presentment_details": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "amount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amount",
                        "currency"
                      ]
                    },
                    "processing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "bacs_debit"
                          ]
                        }
                      },
                      "required": [
                        "type"
                      ]
                    },
                    "receipt_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "refunded": {
                      "type": "boolean",
                      "default": false
                    },
                    "reporting_type": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "requires_payment_method",
                        "requires_confirmation",
                        "requires_action",
                        "processing",
                        "canceled",
                        "succeeded"
                      ]
                    },
                    "transfer_group": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "created",
                    "object",
                    "adaptive_pricing",
                    "amount",
                    "application",
                    "balance_transaction",
                    "capture_method",
                    "client_secret",
                    "confirmed_at",
                    "cross_border",
                    "currency",
                    "customer",
                    "description",
                    "dispute",
                    "invoice",
                    "last_payment_error",
                    "next_action",
                    "paid_at",
                    "payment_method",
                    "payment_method_types",
                    "payment_session",
                    "presentment_details",
                    "processing",
                    "receipt_url",
                    "reporting_type",
                    "status",
                    "transfer_group"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {}
}