{
  "info": {
    "name": "ESTATEREAL API 1.0",
    "description": "The ESTATEREAL API v1 on your company address. Put your Integration API key (Settings → API keys → Integration API) into the collection variable \"apiKey\"; it is sent in the X-Api-Key header. Set subdomain to your own company subdomain; baseUrl then uses that company address. Every answer is {status, statusCode, message, payload}: a business error is HTTP 200 with status 0, so always check status. The full guide is on /api/docs.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-Api-Key"
      },
      {
        "key": "value",
        "value": "{{apiKey}}"
      },
      {
        "key": "in",
        "value": "header"
      }
    ]
  },
  "variable": [
    {
      "key": "subdomain",
      "value": "your-subdomain",
      "type": "string",
      "description": "Your company subdomain. Replace this before sending requests."
    },
    {
      "key": "baseUrl",
      "value": "https://{{subdomain}}.estatereal.io"
    },
    {
      "key": "apiKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Properties and units",
      "description": "Buildings (properties) and the units inside them.",
      "item": [
        {
          "name": "Gets one property with its details.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/property/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "property",
                "get"
              ],
              "query": [
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "The property's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one property with its details."
          }
        },
        {
          "name": "Lists the company's properties (buildings and land), 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/property/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "property",
                "getlist"
              ],
              "query": [
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the name, code, address, city or area.",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "",
                  "description": "active (default) | inactive | all.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the company's properties (buildings and land), 30 at a time."
          }
        },
        {
          "name": "Adds a property, or changes it when propertyId is sent.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/property/save",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "property",
                "save"
              ]
            },
            "description": "Adds a property, or changes it when propertyId is sent.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"name\": \"Building A\",\r\n  \"code\": \"BLDA\",\r\n  \"kind\": \"building\",\r\n  \"address\": \"Street name 1\",\r\n  \"city\": \"City name\",\r\n  \"postcode\": \"00000\",\r\n  \"floors\": 4,\r\n  \"yearBuilt\": 2005\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Makes a property active or inactive (an inactive property is kept but left out of daily lists).",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/property/setactive",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "property",
                "setactive"
              ]
            },
            "description": "Makes a property active or inactive (an inactive property is kept but left out of daily lists).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one unit with its details.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/propertyunit/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "propertyunit",
                "get"
              ],
              "query": [
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "The unit's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one unit with its details."
          }
        },
        {
          "name": "Lists the company's units, or the units of one property, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/propertyunit/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "propertyunit",
                "getlist"
              ],
              "query": [
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only the units of this property.",
                  "disabled": true
                },
                {
                  "key": "occupancy",
                  "value": "",
                  "description": "vacant | reserved | occupied | all (default).",
                  "disabled": true
                },
                {
                  "key": "state",
                  "value": "",
                  "description": "active (default) | inactive | all.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the unit reference, property name or code, tenant name or unit type.",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "unit (default) | building | rent_desc | rent_asc | newest.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the company's units, or the units of one property, 30 at a time."
          }
        },
        {
          "name": "Adds a unit to a property, or changes it when propertyUnitId is sent.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/propertyunit/save",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "propertyunit",
                "save"
              ]
            },
            "description": "Adds a unit to a property, or changes it when propertyUnitId is sent.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Makes a unit active or inactive.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/propertyunit/setactive",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "propertyunit",
                "setactive"
              ]
            },
            "description": "Makes a unit active or inactive.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Contacts",
      "description": "People and organisations: tenants, owners, contractors and other contacts.",
      "item": [
        {
          "name": "Finds contacts that already use this email or phone, so the same person is not added twice.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contact/findmatches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contact",
                "findmatches"
              ],
              "query": [
                {
                  "key": "email",
                  "value": "",
                  "description": "Email to look for (compared without case).",
                  "disabled": true
                },
                {
                  "key": "phone",
                  "value": "",
                  "description": "Phone to look for (only digits and + are compared).",
                  "disabled": true
                },
                {
                  "key": "excludeId",
                  "value": "",
                  "description": "Optional: a contact to leave out (the one being edited).",
                  "disabled": true
                }
              ]
            },
            "description": "Finds contacts that already use this email or phone, so the same person is not added twice."
          }
        },
        {
          "name": "Gets one contact with its roles and details.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contact/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contact",
                "get"
              ],
              "query": [
                {
                  "key": "contactId",
                  "value": "",
                  "description": "The contact's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one contact with its roles and details."
          }
        },
        {
          "name": "Lists contacts (people and organisations) with filters, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contact/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contact",
                "getlist"
              ],
              "query": [
                {
                  "key": "Roles",
                  "value": "",
                  "description": "Comma list of roles in snake_case (tenant,landlord …). Empty = every role.",
                  "disabled": true
                },
                {
                  "key": "Search",
                  "value": "",
                  "description": "Optional text to look for in the name, organisation, email or phone.",
                  "disabled": true
                },
                {
                  "key": "State",
                  "value": "",
                  "description": "active (default) | inactive | all",
                  "disabled": true
                },
                {
                  "key": "Cursor",
                  "value": "",
                  "description": "Paging: empty for the first page, then the nextCursor of the previous answer.",
                  "disabled": true
                }
              ]
            },
            "description": "Lists contacts (people and organisations) with filters, 30 at a time."
          }
        },
        {
          "name": "Adds a contact, or changes it when contactId is sent.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contact/save",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contact",
                "save"
              ]
            },
            "description": "Adds a contact, or changes it when contactId is sent.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"kind\": \"person\",\r\n  \"firstName\": \"Tenant\",\r\n  \"lastName\": \"Name\",\r\n  \"email\": \"tenant@example.com\",\r\n  \"phone\": \"\\u002B30 210 000 0000\",\r\n  \"roles\": [\r\n    \"tenant\"\r\n  ],\r\n  \"preferredChannel\": \"email\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Makes a contact active or inactive.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/contact/setactive",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "contact",
                "setactive"
              ]
            },
            "description": "Makes a contact active or inactive.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Tenancies",
      "description": "Tenancies (leases): create, change terms, renew, notice, end and cancel.",
      "item": [
        {
          "name": "Cancels a pending tenancy that was never signed or started, with a reason; the unit is released.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "cancel"
              ]
            },
            "description": "Cancels a pending tenancy that was never signed or started, with a reason; the unit is released.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Changes the rent, end date or due day of a live tenancy (by amendment agreement when it was signed in the system).",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/changeterms",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "changeterms"
              ]
            },
            "description": "Changes the rent, end date or due day of a live tenancy (by amendment agreement when it was signed in the system).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Creates a tenancy on a free unit, signed offline (with the signed PDF) or by e-signature.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/create",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "create"
              ]
            },
            "description": "Creates a tenancy on a free unit, signed offline (with the signed PDF) or by e-signature.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"propertyUnitId\": \"3fa85f64-5717-4562-b3fc-2c963f66b002\",\r\n  \"tenants\": [\r\n    {\r\n      \"firstName\": \"Tenant\",\r\n      \"lastName\": \"Name\",\r\n      \"email\": \"tenant@example.com\",\r\n      \"phone\": \"\\u002B30 210 000 0000\"\r\n    }\r\n  ],\r\n  \"tenantType\": \"employed\",\r\n  \"startDate\": \"2026-01-01\",\r\n  \"endDate\": \"2027-12-31\",\r\n  \"rent\": 50000,\r\n  \"deposit\": 100000,\r\n  \"dueDay\": 5,\r\n  \"rentInterval\": \"monthly\",\r\n  \"agreementRoute\": \"offline\",\r\n  \"signedFile\": {\r\n    \"fileName\": \"agreement.pdf\",\r\n    \"contentBase64\": \"JVBERi0xLjQKJSBleGFtcGxlCiUlRU9G\"\r\n  },\r\n  \"depositReceived\": false\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ends a live tenancy; the unit becomes vacant unless another open tenancy holds it.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/end",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "end"
              ]
            },
            "description": "Ends a live tenancy; the unit becomes vacant unless another open tenancy holds it.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one tenancy with its people, terms and onboarding checklist.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "get"
              ],
              "query": [
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "The tenancy's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one tenancy with its people, terms and onboarding checklist."
          }
        },
        {
          "name": "Lists the documents of one tenancy (agreements and uploaded files).",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/getdocuments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "getdocuments"
              ],
              "query": [
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "The tenancy's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the documents of one tenancy (agreements and uploaded files)."
          }
        },
        {
          "name": "Lists tenancies, newest start date first, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "getlist"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "all | expiring | pending | active | notice_given | ending | ended | cancelled | archived.",
                  "disabled": true
                },
                {
                  "key": "buildingId",
                  "value": "",
                  "description": "Optional: only tenancies of this property.",
                  "disabled": true
                },
                {
                  "key": "expiring",
                  "value": "",
                  "description": "true = only live tenancies ending within 60 days.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the tenancy reference, unit, property or tenant names.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists tenancies, newest start date first, 30 at a time."
          }
        },
        {
          "name": "Records notice given by the tenant or the landlord; the end date moves to the move-out date.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/givenotice",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "givenotice"
              ]
            },
            "description": "Records notice given by the tenant or the landlord; the end date moves to the move-out date.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Renews a tenancy with a new end date and terms (by renewal agreement when it was signed in the system).",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/tenancy/renew",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "tenancy",
                "renew"
              ]
            },
            "description": "Renews a tenancy with a new end date and terms (by renewal agreement when it was signed in the system).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Charges and invoices",
      "description": "Invoices (charges) on the rent ledger, credits, write-offs, voids and unit invoices.",
      "item": [
        {
          "name": "Issues a manual invoice on a tenancy's rent ledger.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/add",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "add"
              ]
            },
            "description": "Issues a manual invoice on a tenancy's rent ledger.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"tenancyId\": \"3fa85f64-5717-4562-b3fc-2c963f66b001\",\r\n  \"amount\": 12500,\r\n  \"dueDate\": \"2026-03-05\",\r\n  \"description\": \"Extra cleaning\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Posts a credit note or a write-off on an invoice, with a reason.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/adjust",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "adjust"
              ]
            },
            "description": "Posts a credit note or a write-off on an invoice, with a reason.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one invoice with its payments, credits and write-offs.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "get"
              ],
              "query": [
                {
                  "key": "chargeId",
                  "value": "",
                  "description": "The invoice's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one invoice with its payments, credits and write-offs."
          }
        },
        {
          "name": "Lists invoices (charges) with filters, newest due date first, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "getlist"
              ],
              "query": [
                {
                  "key": "ledger",
                  "value": "",
                  "description": "rent | common (expenses); empty = both.",
                  "disabled": true
                },
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "Optional: only this tenancy.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "all | open | overdue | paid | void | issued | partially_paid (open = issued, partly paid or overdue).",
                  "disabled": true
                },
                {
                  "key": "period",
                  "value": "",
                  "description": "Optional month yyyy-MM the invoice is for.",
                  "disabled": true
                },
                {
                  "key": "dueFrom",
                  "value": "",
                  "description": "Optional first due date (yyyy-MM-dd, included).",
                  "disabled": true
                },
                {
                  "key": "dueTo",
                  "value": "",
                  "description": "Optional last due date (yyyy-MM-dd, included).",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the invoice reference, tenant, unit or tenancy reference.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists invoices (charges) with filters, newest due date first, 30 at a time."
          }
        },
        {
          "name": "Lists the open (not fully paid) invoices of one tenancy, oldest due date first.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/getopenlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "getopenlist"
              ],
              "query": [
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "The tenancy's id.",
                  "disabled": true
                },
                {
                  "key": "ledger",
                  "value": "",
                  "description": "rent | common (required).",
                  "disabled": true
                },
                {
                  "key": "excludePaymentId",
                  "value": "",
                  "description": "Optional: a payment whose own allocations are left out.",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the open (not fully paid) invoices of one tenancy, oldest due date first."
          }
        },
        {
          "name": "Gets the money summary of one tenancy: balance per ledger, overdue amount and deposit.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/gettenancymoney",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "gettenancymoney"
              ],
              "query": [
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "The tenancy's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets the money summary of one tenancy: balance per ledger, overdue amount and deposit."
          }
        },
        {
          "name": "Voids an invoice that has no payments or credits, with a reason.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/charge/void",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "charge",
                "void"
              ]
            },
            "description": "Voids an invoice that has no payments or credits, with a reason.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one unit invoice with its lines.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/unitinvoice/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "unitinvoice",
                "get"
              ],
              "query": [
                {
                  "key": "unitInvoiceId",
                  "value": "",
                  "description": "The unit invoice's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one unit invoice with its lines."
          }
        },
        {
          "name": "Lists unit invoices (costs charged to a unit's tenant on the expenses ledger), 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/unitinvoice/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "unitinvoice",
                "getlist"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "all | draft | open | paid.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "source",
                  "value": "",
                  "description": "manual | utility | period | housekeeping | all.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the invoice reference, tenant, unit or a line.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists unit invoices (costs charged to a unit's tenant on the expenses ledger), 30 at a time."
          }
        }
      ]
    },
    {
      "name": "Payments, deposits and ledger",
      "description": "Payments, allocation, reversals and refunds, deposits, balances, arrears and statements.",
      "item": [
        {
          "name": "Records the deposit received for a tenancy (once per tenancy).",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deposit/record",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deposit",
                "record"
              ]
            },
            "description": "Records the deposit received for a tenancy (once per tenancy).",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"tenancyId\": \"3fa85f64-5717-4562-b3fc-2c963f66b001\",\r\n  \"paymentTypeId\": \"3fa85f64-5717-4562-b3fc-2c963f66b004\",\r\n  \"receivedOn\": \"2026-01-01\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Records the deposit paid back and / or kept at the end of a tenancy.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/deposit/return",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "deposit",
                "return"
              ]
            },
            "description": "Records the deposit paid back and / or kept at the end of a tenancy.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Lists tenancies in arrears with the overdue amount and days, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ledger/getarrears",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ledger",
                "getarrears"
              ],
              "query": [
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "minDays",
                  "value": "",
                  "description": "Optional: only invoices at least this many days overdue.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the invoice reference, tenant or unit.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists tenancies in arrears with the overdue amount and days, 30 at a time."
          }
        },
        {
          "name": "Lists tenancy balances (what each tenancy owes on each ledger), 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ledger/getbalances",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ledger",
                "getbalances"
              ],
              "query": [
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the tenant, unit, tenancy reference or property.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists tenancy balances (what each tenancy owes on each ledger), 30 at a time."
          }
        },
        {
          "name": "Gets the statement of one tenancy: invoices, payments and the running balance.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ledger/getstatement",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ledger",
                "getstatement"
              ],
              "query": [
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "The tenancy's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets the statement of one tenancy: invoices, payments and the running balance."
          }
        },
        {
          "name": "Sets the unallocated money of a cleared payment against invoices you choose, with a reason.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/allocatechosen",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "allocatechosen"
              ]
            },
            "description": "Sets the unallocated money of a cleared payment against invoices you choose, with a reason.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one payment with what it was set against.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "get"
              ],
              "query": [
                {
                  "key": "paymentId",
                  "value": "",
                  "description": "The payment's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one payment with what it was set against."
          }
        },
        {
          "name": "Lists payments with filters, newest first, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "getlist"
              ],
              "query": [
                {
                  "key": "ledger",
                  "value": "",
                  "description": "rent | common (expenses); empty = both.",
                  "disabled": true
                },
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "Optional: only this tenancy.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "all | pending | received | cleared | failed | reversed | refunded.",
                  "disabled": true
                },
                {
                  "key": "paymentTypeId",
                  "value": "",
                  "description": "Optional: only this payment type.",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Optional first received date (yyyy-MM-dd, included).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Optional last received date (yyyy-MM-dd, included).",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the payment reference, bank reference, tenant or unit.",
                  "disabled": true
                },
                {
                  "key": "includeDeleted",
                  "value": "",
                  "description": "true = also list deleted payments.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists payments with filters, newest first, 30 at a time."
          }
        },
        {
          "name": "Lists cleared payments that still have money not set against an invoice, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/getunallocated",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "getunallocated"
              ],
              "query": [
                {
                  "key": "ledger",
                  "value": "",
                  "description": "rent | common (expenses); empty = both.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the payment reference, bank reference, tenant or unit.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists cleared payments that still have money not set against an invoice, 30 at a time."
          }
        },
        {
          "name": "Records a payment received from a tenant, on the rent or the expenses ledger.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/record",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "record"
              ]
            },
            "description": "Records a payment received from a tenant, on the rent or the expenses ledger.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"tenancyId\": \"3fa85f64-5717-4562-b3fc-2c963f66b001\",\r\n  \"ledger\": \"rent\",\r\n  \"amount\": 50000,\r\n  \"paymentTypeId\": \"3fa85f64-5717-4562-b3fc-2c963f66b004\",\r\n  \"receivedOn\": \"2026-03-04\",\r\n  \"bankReference\": \"TRF-000123\",\r\n  \"status\": \"cleared\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Refunds a posted payment to the tenant; its invoices open again.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/refund",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "refund"
              ]
            },
            "description": "Refunds a posted payment to the tenant; its invoices open again.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Reverses a posted payment (for example a bounced transfer); its invoices open again.",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "Optional. A unique value (up to 100 characters) for this change. A repeat with the same key within 24 hours returns the first answer and changes nothing; the same key with another body is refused (statusCode 409)."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/api/v1/payment/reverse",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "payment",
                "reverse"
              ]
            },
            "description": "Reverses a posted payment (for example a bounced transfer); its invoices open again.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Maintenance",
      "description": "Maintenance tickets: report, edit, move through the statuses and close.",
      "item": [
        {
          "name": "Closes a ticket.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/close",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "close"
              ]
            },
            "description": "Closes a ticket.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Reports a new maintenance ticket for a property, unit or shared area.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/create",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "create"
              ]
            },
            "description": "Reports a new maintenance ticket for a property, unit or shared area.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"propertyId\": \"3fa85f64-5717-4562-b3fc-2c963f66b003\",\r\n  \"propertyUnitId\": \"3fa85f64-5717-4562-b3fc-2c963f66b002\",\r\n  \"category\": \"Plumbing\",\r\n  \"urgency\": \"normal\",\r\n  \"title\": \"Leaking tap\",\r\n  \"description\": \"The kitchen tap drips all the time.\",\r\n  \"accessAvailability\": \"Weekdays after 17:00\",\r\n  \"reportedBy\": \"staff\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Changes the details of a ticket.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/edit",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "edit"
              ]
            },
            "description": "Changes the details of a ticket.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one ticket with its history, appointments and costs.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "get"
              ],
              "query": [
                {
                  "key": "ticketId",
                  "value": "",
                  "description": "The ticket's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one ticket with its history, appointments and costs."
          }
        },
        {
          "name": "Lists maintenance tickets with filters, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "getlist"
              ],
              "query": [
                {
                  "key": "scope",
                  "value": "",
                  "description": "all (default) | open | new | assigned | progress | waiting | done | closed.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the ticket reference, title, property, unit, tenant or contractor.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "Optional: only this unit.",
                  "disabled": true
                },
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "Optional: only this tenancy.",
                  "disabled": true
                },
                {
                  "key": "contactId",
                  "value": "",
                  "description": "Optional: only tickets linked to this contact.",
                  "disabled": true
                },
                {
                  "key": "urgency",
                  "value": "",
                  "description": "emergency | high | normal | low | all.",
                  "disabled": true
                },
                {
                  "key": "category",
                  "value": "",
                  "description": "Optional category (exact).",
                  "disabled": true
                },
                {
                  "key": "assignee",
                  "value": "",
                  "description": "all (default) | none (unassigned) | a staff user id.",
                  "disabled": true
                },
                {
                  "key": "overdueOnly",
                  "value": "",
                  "description": "true = only open tickets past their due time.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists maintenance tickets with filters, 30 at a time."
          }
        },
        {
          "name": "Moves a ticket to another status.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/ticket/setstatus",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "ticket",
                "setstatus"
              ]
            },
            "description": "Moves a ticket to another status.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Leasing",
      "description": "Public listings (adverts), viewings and rental applications.",
      "item": [
        {
          "name": "Archives a rejected or withdrawn application.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/archive",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "archive"
              ]
            },
            "description": "Archives a rejected or withdrawn application.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Approves or rejects an application, with a reason.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/decide",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "decide"
              ]
            },
            "description": "Approves or rejects an application, with a reason.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one application.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "get"
              ],
              "query": [
                {
                  "key": "applicationId",
                  "value": "",
                  "description": "The application's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one application."
          }
        },
        {
          "name": "Lists rental applications with filters, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "getlist"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "submitted | under_review | info_requested | approved | rejected | withdrawn | archived | draft; empty or all = every status but draft and archived.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "Optional: only this unit.",
                  "disabled": true
                },
                {
                  "key": "applicantType",
                  "value": "",
                  "description": "employed | self_employed | student | intern.",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "",
                  "description": "Optional first submitted date (yyyy-MM-dd).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Optional last submitted date (yyyy-MM-dd, the whole day).",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "",
                  "description": "newest (default) | score_desc | score_asc (scores need the screening permission).",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the reference, applicant name or email.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists rental applications with filters, 30 at a time."
          }
        },
        {
          "name": "Moves a submitted application to under review.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/startreview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "startreview"
              ]
            },
            "description": "Moves a submitted application to under review.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Records that the applicant withdrew the application.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/application/withdraw",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "application",
                "withdraw"
              ]
            },
            "description": "Records that the applicant withdrew the application.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one listing with its details.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/listing/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "listing",
                "get"
              ],
              "query": [
                {
                  "key": "publicListingId",
                  "value": "",
                  "description": "The listing's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one listing with its details."
          }
        },
        {
          "name": "Lists the company's listings (adverts), 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/listing/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "listing",
                "getlist"
              ],
              "query": [
                {
                  "key": "status",
                  "value": "",
                  "description": "draft | active | paused | closed; empty = all.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the title, unit, property or city.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the company's listings (adverts), 30 at a time."
          }
        },
        {
          "name": "Publishes, pauses, re-opens or closes a listing (allowed moves only).",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/listing/setstatus",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "listing",
                "setstatus"
              ]
            },
            "description": "Publishes, pauses, re-opens or closes a listing (allowed moves only).",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one viewing.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/viewing/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "viewing",
                "get"
              ],
              "query": [
                {
                  "key": "viewingId",
                  "value": "",
                  "description": "The viewing's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one viewing."
          }
        },
        {
          "name": "Lists viewings with filters, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/viewing/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "viewing",
                "getlist"
              ],
              "query": [
                {
                  "key": "when",
                  "value": "",
                  "description": "upcoming (default) | past | all.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "requested | scheduled | completed | cancelled | no_show | closed.",
                  "disabled": true
                },
                {
                  "key": "publicListingId",
                  "value": "",
                  "description": "Optional: only this listing.",
                  "disabled": true
                },
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "Optional: only this unit.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the visitor's name or email.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists viewings with filters, 30 at a time."
          }
        },
        {
          "name": "Moves a viewing to a new date and time; the visitor is emailed.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/viewing/reschedule",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "viewing",
                "reschedule"
              ]
            },
            "description": "Moves a viewing to a new date and time; the visitor is emailed.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Moves a viewing to another status (allowed moves only); the visitor is emailed.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/viewing/setstatus",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "viewing",
                "setstatus"
              ]
            },
            "description": "Moves a viewing to another status (allowed moves only); the visitor is emailed.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Documents",
      "description": "Files kept on a record: list, download link and upload.",
      "item": [
        {
          "name": "Gets a short-lived link to download one document.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/document/getlink",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "document",
                "getlink"
              ],
              "query": [
                {
                  "key": "documentId",
                  "value": "",
                  "description": "The document's id. The link works for 5 minutes.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets a short-lived link to download one document."
          }
        },
        {
          "name": "Lists the documents attached to one or more records, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/document/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "document",
                "getlist"
              ],
              "query": [
                {
                  "key": "refs",
                  "value": "",
                  "description": "Required: 1 to 100 records as type:id, separated by commas (type = property | property_unit | tenancy | contact | handover | asset).",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the documents attached to one or more records, 30 at a time."
          }
        },
        {
          "name": "Uploads a file (base64 in the JSON body) and attaches it to a record.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/document/upload",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "document",
                "upload"
              ]
            },
            "description": "Uploads a file (base64 in the JSON body) and attaches it to a record.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"recordType\": \"tenancy\",\r\n  \"recordId\": \"3fa85f64-5717-4562-b3fc-2c963f66b001\",\r\n  \"fileName\": \"inventory.pdf\",\r\n  \"contentBase64\": \"JVBERi0xLjQKJSBleGFtcGxlCiUlRU9G\",\r\n  \"kind\": \"other\",\r\n  \"visibility\": \"internal\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Tasks",
      "description": "Office tasks and the calendar.",
      "item": [
        {
          "name": "Creates a task on the office calendar for a member of staff.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/officetask/create",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "officetask",
                "create"
              ]
            },
            "description": "Creates a task on the office calendar for a member of staff.",
            "body": {
              "mode": "raw",
              "raw": "{\r\n  \"title\": \"Check the boiler\",\r\n  \"type\": \"general\",\r\n  \"dueAt\": \"2026-12-01T09:00:00Z\",\r\n  \"durationMin\": 60,\r\n  \"priority\": \"normal\",\r\n  \"propertyId\": \"3fa85f64-5717-4562-b3fc-2c963f66b003\",\r\n  \"notes\": \"Bring the service book.\"\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Gets one task.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/officetask/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "officetask",
                "get"
              ],
              "query": [
                {
                  "key": "officeTaskId",
                  "value": "",
                  "description": "The task's id.",
                  "disabled": true
                }
              ]
            },
            "description": "Gets one task."
          }
        },
        {
          "name": "Lists office tasks with filters, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/officetask/getlist",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "officetask",
                "getlist"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "description": "Optional start (ISO date-time in UTC, included).",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Optional end (ISO date-time in UTC, not included).",
                  "disabled": true
                },
                {
                  "key": "scope",
                  "value": "",
                  "description": "mine | all (all needs the right to see everyone's tasks).",
                  "disabled": true
                },
                {
                  "key": "assigneeUserId",
                  "value": "",
                  "description": "Optional: only this staff user's tasks.",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "",
                  "description": "viewing | handover | inspection | repair | rent_followup | general.",
                  "disabled": true
                },
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "active | pending | overdue | open | in_progress | done | cancelled.",
                  "disabled": true
                },
                {
                  "key": "hidden",
                  "value": "",
                  "description": "Optional: staff user ids (or none) whose tasks are left out, separated by commas.",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "",
                  "description": "Optional text to look for in the title or notes.",
                  "disabled": true
                },
                {
                  "key": "order",
                  "value": "",
                  "description": "asc (default) | desc by due time.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists office tasks with filters, 30 at a time."
          }
        },
        {
          "name": "Changes a task's status.",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/officetask/setstatus",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "officetask",
                "setstatus"
              ]
            },
            "description": "Changes a task's status.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Reports",
      "description": "Read-only reports.",
      "item": [
        {
          "name": "Gets the reports page figures for the chosen filters.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/report/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "report",
                "get"
              ],
              "query": [
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "Optional: only this unit (of the property).",
                  "disabled": true
                },
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "Optional: only this tenancy.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "current | ending | ended (tenancies).",
                  "disabled": true
                },
                {
                  "key": "responsible",
                  "value": "",
                  "description": "Optional: user:{id} (staff) or contact:{id} (contractor).",
                  "disabled": true
                },
                {
                  "key": "months",
                  "value": "",
                  "description": "1 to 24 months back (default 6).",
                  "disabled": true
                }
              ]
            },
            "description": "Gets the reports page figures for the chosen filters."
          }
        },
        {
          "name": "Lists the arrears rows of the report, 30 at a time.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/report/getarrears",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "report",
                "getarrears"
              ],
              "query": [
                {
                  "key": "propertyId",
                  "value": "",
                  "description": "Optional: only this property.",
                  "disabled": true
                },
                {
                  "key": "propertyUnitId",
                  "value": "",
                  "description": "Optional: only this unit (of the property).",
                  "disabled": true
                },
                {
                  "key": "tenancyId",
                  "value": "",
                  "description": "Optional: only this tenancy.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "current | ending | ended (tenancies).",
                  "disabled": true
                },
                {
                  "key": "ledger",
                  "value": "",
                  "description": "rent | common (expenses); empty = both.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the arrears rows of the report, 30 at a time."
          }
        }
      ]
    },
    {
      "name": "Availability",
      "description": "The partner availability feed (its own Availability key).",
      "item": [
        {
          "name": "Lists the units free to rent in a date window, with asking rent, size, rooms and advert link.",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/v1/availability/get",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "v1",
                "availability",
                "get"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "",
                  "description": "First day (yyyy-MM-dd); default today.",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "",
                  "description": "Last day (yyyy-MM-dd); at most 366 days after from.",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Paging: leave empty for the first page, then send pagination.nextCursor of the previous answer (stop when hasNext is false).",
                  "disabled": true
                }
              ]
            },
            "description": "Lists the units free to rent in a date window, with asking rent, size, rooms and advert link."
          }
        }
      ]
    }
  ]
}
