{"openapi":"3.1.0","info":{"title":"Storage management API","version":"1.0.0"},"servers":[{"url":"https://api.axralstorage.com/v1"},{"url":"https://navzsuqtqcrsunrolcjd.supabase.co/functions/v1/external-api/v1","description":"Direct development backend endpoint"}],"security":[{"integrationKey":[]}],"components":{"responses":{"ApiError":{"description":"Request failed. See the developer guide for error codes and recovery. Retry-After is present for throttled requests.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","meta"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}}},"schemas":{"Meta":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string","format":"uuid"},"replayed":{"type":"boolean"}}}},"securitySchemes":{"integrationKey":{"type":"http","scheme":"bearer","description":"An expiring ssk_ integration credential, never a Supabase secret."}}},"paths":{"/facilities":{"get":{"operationId":"facilities.list","summary":"List facilities","x-required-scope":"inventory:read","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","name","address_line_1","city","state","postal_code","timezone","contact_email","contact_phone","active","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"address_line_1":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"timezone":{"type":["string","null"]},"contact_email":{"type":["string","null"]},"contact_phone":{"type":["string","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{id}":{"get":{"operationId":"facilities.get","summary":"Get facilities","x-required-scope":"inventory:read","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","name","address_line_1","city","state","postal_code","timezone","contact_email","contact_phone","active","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"address_line_1":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"timezone":{"type":["string","null"]},"contact_email":{"type":["string","null"]},"contact_phone":{"type":["string","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"facilities.update","summary":"Update facility contact details","x-required-scope":"settings:write","x-agent-confirmation":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":160},"contact_email":{"type":["string","null"],"format":"email","maxLength":254},"contact_phone":{"type":["string","null"],"maxLength":40},"address_line_1":{"type":"string","minLength":1,"maxLength":255},"city":{"type":"string","minLength":1,"maxLength":100},"state":{"type":"string","minLength":1,"maxLength":100},"postal_code":{"type":"string","minLength":1,"maxLength":20}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/units":{"get":{"operationId":"units.list","summary":"List units and current advertised prices","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["available","occupied","maintenance"]}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_number","size","monthly_price","status","climate_control","floor","access_type","unit_type_id","building","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_number":{"type":["string","null"]},"size":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"status":{"type":["string","null"]},"climate_control":{"type":"boolean"},"floor":{"type":["string","null"]},"access_type":{"type":["string","null"]},"unit_type_id":{"type":["string","null"],"format":"uuid"},"building":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"units.create","summary":"Add one unit to inventory","x-required-scope":"inventory:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"unit_number":{"type":"string","minLength":1,"maxLength":40},"size":{"type":"string","minLength":1,"maxLength":40,"description":"Width x depth in feet, such as 10x10."},"monthly_price_cents":{"type":"integer","minimum":0,"maximum":999999999},"climate_control":{"type":"boolean"},"floor":{"type":"string","maxLength":40},"access_type":{"type":"string","enum":["Indoor","Drive-up","Upper floor","Vehicle"]},"building":{"type":"string","maxLength":80},"notes":{"type":"string","maxLength":2000},"status":{"type":"string","enum":["available","maintenance"]}},"required":["unit_number","size","monthly_price_cents"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/units/{id}":{"get":{"operationId":"units.get","summary":"Get units and current advertised prices","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_number","size","monthly_price","status","climate_control","floor","access_type","unit_type_id","building","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_number":{"type":["string","null"]},"size":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"status":{"type":["string","null"]},"climate_control":{"type":"boolean"},"floor":{"type":["string","null"]},"access_type":{"type":["string","null"]},"unit_type_id":{"type":["string","null"],"format":"uuid"},"building":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"units.update","summary":"Edit unit details, or move an unrented unit between available and maintenance","x-required-scope":"inventory:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"unit_number":{"type":"string","minLength":1,"maxLength":40},"size":{"type":"string","minLength":1,"maxLength":40,"description":"Width x depth in feet, such as 10x10."},"climate_control":{"type":"boolean"},"floor":{"type":"string","maxLength":40},"access_type":{"type":"string","enum":["Indoor","Drive-up","Upper floor","Vehicle"]},"building":{"type":"string","maxLength":80},"notes":{"type":"string","maxLength":2000},"status":{"type":"string","enum":["available","maintenance"]},"unit_type_id":{"type":["string","null"],"format":"uuid"}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/unit-types":{"get":{"operationId":"unit-types.list","summary":"List unit types","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","name","size","monthly_price","climate_control","access_type","description","active"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"size":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"climate_control":{"type":"boolean"},"access_type":{"type":["string","null"]},"description":{"type":["string","null"]},"active":{"type":"boolean"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/unit-types/{id}":{"get":{"operationId":"unit-types.get","summary":"Get unit types","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","name","size","monthly_price","climate_control","access_type","description","active"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"size":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"climate_control":{"type":"boolean"},"access_type":{"type":["string","null"]},"description":{"type":["string","null"]},"active":{"type":"boolean"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/rate-plans":{"get":{"operationId":"rate-plans.list","summary":"List rate plans","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_type_id","name","monthly_price","web_price","effective_from","effective_to","is_default","active"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_type_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"web_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"effective_from":{"type":["string","null"],"format":"date"},"effective_to":{"type":["string","null"],"format":"date"},"is_default":{"type":"boolean"},"active":{"type":"boolean"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/rate-plans/{id}":{"get":{"operationId":"rate-plans.get","summary":"Get rate plans","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_type_id","name","monthly_price","web_price","effective_from","effective_to","is_default","active"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_type_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"web_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"effective_from":{"type":["string","null"],"format":"date"},"effective_to":{"type":["string","null"],"format":"date"},"is_default":{"type":"boolean"},"active":{"type":"boolean"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/tenants":{"get":{"operationId":"tenants.list","summary":"List facility tenant directory","x-required-scope":"tenants:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","archived"]}},{"name":"query","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":160,"description":"Name, email or phone fragment."}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","first_name","last_name","email","phone","status","notes","address_line_1","address_line_2","city","state","postal_code","alternate_contact_name","alternate_contact_relationship","alternate_contact_phone","alternate_contact_email","active_military","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"status":{"type":["string","null"]},"notes":{"type":["string","null"]},"address_line_1":{"type":["string","null"]},"address_line_2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"alternate_contact_name":{"type":["string","null"]},"alternate_contact_relationship":{"type":["string","null"]},"alternate_contact_phone":{"type":["string","null"]},"alternate_contact_email":{"type":["string","null"]},"active_military":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"tenants.create","summary":"Create a contact with this home facility","x-required-scope":"tenants:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1},"last_name":{"type":"string","maxLength":100,"minLength":1},"email":{"type":["string","null"],"format":"email","maxLength":254},"phone":{"type":["string","null"],"maxLength":40},"notes":{"type":"string","maxLength":4000},"address_line_1":{"type":"string","maxLength":255},"address_line_2":{"type":"string","maxLength":255},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postal_code":{"type":"string","maxLength":20},"alternate_contact_name":{"type":"string","maxLength":200},"alternate_contact_relationship":{"type":"string","maxLength":100},"alternate_contact_phone":{"type":"string","maxLength":40},"alternate_contact_email":{"type":"string","maxLength":254},"active_military":{"type":"boolean"}},"required":["first_name","last_name"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/tenants/{id}":{"get":{"operationId":"tenants.get","summary":"Get facility tenant directory","x-required-scope":"tenants:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","first_name","last_name","email","phone","status","notes","address_line_1","address_line_2","city","state","postal_code","alternate_contact_name","alternate_contact_relationship","alternate_contact_phone","alternate_contact_email","active_military","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"status":{"type":["string","null"]},"notes":{"type":["string","null"]},"address_line_1":{"type":["string","null"]},"address_line_2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"alternate_contact_name":{"type":["string","null"]},"alternate_contact_relationship":{"type":["string","null"]},"alternate_contact_phone":{"type":["string","null"]},"alternate_contact_email":{"type":["string","null"]},"active_military":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"tenants.update","summary":"Update shared workspace contact information","x-required-scope":"tenants:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1},"last_name":{"type":"string","maxLength":100,"minLength":1},"email":{"type":["string","null"],"format":"email","maxLength":254},"phone":{"type":["string","null"],"maxLength":40},"notes":{"type":"string","maxLength":4000},"address_line_1":{"type":"string","maxLength":255},"address_line_2":{"type":"string","maxLength":255},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postal_code":{"type":"string","maxLength":20},"alternate_contact_name":{"type":"string","maxLength":200},"alternate_contact_relationship":{"type":"string","maxLength":100},"alternate_contact_phone":{"type":"string","maxLength":40},"alternate_contact_email":{"type":"string","maxLength":254},"active_military":{"type":"boolean"}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases":{"get":{"operationId":"leases.list","summary":"List leases","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","scheduled","active","ended","cancelled"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","tenant_id","start_date","end_date","monthly_rate","security_deposit","billing_day","status","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"monthly_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"security_deposit":{"type":["number","null"],"description":"Decimal currency units, not cents."},"billing_day":{"type":["integer","null"]},"status":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"leases.create","summary":"Create an office rental and initial invoice","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"unit_id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"reuse_contact":{"type":"boolean"},"start_date":{"type":"string","format":"date"},"monthly_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"security_deposit_cents":{"type":"integer","minimum":0,"maximum":999999999},"billing_day":{"type":"integer","minimum":1,"maximum":28},"first_rent_cents":{"type":"integer","minimum":0,"maximum":999999999},"photo_id_verified":{"type":"boolean"},"insurance_verified":{"type":"boolean"},"contract_delivery":{"type":"string","enum":["later","email","print"]}},"required":["unit_id","tenant_id","start_date","monthly_rate_cents","security_deposit_cents","billing_day","first_rent_cents","photo_id_verified","insurance_verified","contract_delivery"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}":{"get":{"operationId":"leases.get","summary":"Get leases","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","tenant_id","start_date","end_date","monthly_rate","security_deposit","billing_day","status","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"monthly_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"security_deposit":{"type":["number","null"],"description":"Decimal currency units, not cents."},"billing_day":{"type":["integer","null"]},"status":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations":{"get":{"operationId":"reservations.list","summary":"List reservations and holds","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","converted","cancelled","expired"]}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","first_name","last_name","email","phone","desired_move_in_date","quoted_monthly_rate","reservation_kind","hold_expires_at","status","lease_id","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"desired_move_in_date":{"type":["string","null"],"format":"date"},"quoted_monthly_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"reservation_kind":{"type":["string","null"]},"hold_expires_at":{"type":["string","null"],"format":"date-time"},"status":{"type":["string","null"]},"lease_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"reservations.create","summary":"Create a reservation or hold","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1},"last_name":{"type":"string","maxLength":100,"minLength":1},"email":{"type":"string","format":"email","maxLength":254},"phone":{"type":"string","maxLength":40},"notes":{"type":"string","maxLength":4000},"unit_id":{"type":"string","format":"uuid"},"desired_move_in_date":{"type":"string","format":"date"},"quoted_monthly_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"reservation_kind":{"type":"string","enum":["reservation","hold"]},"hold_expires_at":{"type":"string","format":"date-time"}},"required":["unit_id","first_name","last_name","email","phone","desired_move_in_date","quoted_monthly_rate_cents","reservation_kind"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations/{id}":{"get":{"operationId":"reservations.get","summary":"Get reservations and holds","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","first_name","last_name","email","phone","desired_move_in_date","quoted_monthly_rate","reservation_kind","hold_expires_at","status","lease_id","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"desired_move_in_date":{"type":["string","null"],"format":"date"},"quoted_monthly_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"reservation_kind":{"type":["string","null"]},"hold_expires_at":{"type":["string","null"],"format":"date-time"},"status":{"type":["string","null"]},"lease_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/waitlist":{"get":{"operationId":"waitlist.list","summary":"List waitlist","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["waiting","contacted","converted","cancelled"]}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","first_name","last_name","email","phone","desired_move_in_date","status","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"desired_move_in_date":{"type":["string","null"],"format":"date"},"status":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"waitlist.create","summary":"Add an interested contact to the facility waitlist","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1},"last_name":{"type":"string","maxLength":100,"minLength":1},"email":{"type":["string","null"],"format":"email","maxLength":254},"phone":{"type":["string","null"],"maxLength":40},"unit_type_id":{"type":["string","null"],"format":"uuid"},"requested_size":{"type":"string","maxLength":100},"desired_move_in_date":{"type":["string","null"],"format":"date"},"notes":{"type":"string","maxLength":4000}},"required":["first_name","last_name"],"anyOf":[{"required":["email"],"properties":{"email":{"type":"string","minLength":1,"format":"email"}}},{"required":["phone"],"properties":{"phone":{"type":"string","minLength":1}}}]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/waitlist/{id}":{"get":{"operationId":"waitlist.get","summary":"Get waitlist","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","first_name","last_name","email","phone","desired_move_in_date","status","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"desired_move_in_date":{"type":["string","null"],"format":"date"},"status":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"waitlist.update","summary":"Mark a waiting contact contacted or cancel the entry","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["contacted","cancelled"]}},"required":["status"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices":{"get":{"operationId":"invoices.list","summary":"List invoices with authoritative totals and posted allocations","x-required-scope":"billing:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","void"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","invoice_number","billing_period","issue_date","due_date","lifecycle_status","source","notes","created_at","updated_at","total","paid","balance"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"invoice_number":{"type":["string","null"]},"billing_period":{"type":["string","null"],"format":"date"},"issue_date":{"type":["string","null"],"format":"date"},"due_date":{"type":["string","null"],"format":"date"},"lifecycle_status":{"type":["string","null"]},"source":{"type":["string","null"]},"notes":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"total":{"type":["number","null"],"description":"Decimal currency units, not cents."},"paid":{"type":["number","null"],"description":"Decimal currency units, not cents."},"balance":{"type":["number","null"],"description":"Decimal currency units, not cents."}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"invoices.create","summary":"Issue a manual invoice using the billing ledger","x-required-scope":"billing:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"lease_id":{"type":"string","format":"uuid"},"due_date":{"type":"string","format":"date"},"description":{"type":"string","minLength":1,"maxLength":255},"amount_cents":{"type":"integer","minimum":0,"maximum":999999999},"category":{"type":"string","enum":["rent","deposit","late_fee","admin_fee","insurance","merchandise","payment_fee","other"]},"notes":{"type":"string","maxLength":4000}},"required":["lease_id","due_date","description","amount_cents","category"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}":{"get":{"operationId":"invoices.get","summary":"Get invoices with authoritative totals and posted allocations","x-required-scope":"billing:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","invoice_number","billing_period","issue_date","due_date","lifecycle_status","source","notes","created_at","updated_at","total","paid","balance"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"invoice_number":{"type":["string","null"]},"billing_period":{"type":["string","null"],"format":"date"},"issue_date":{"type":["string","null"],"format":"date"},"due_date":{"type":["string","null"],"format":"date"},"lifecycle_status":{"type":["string","null"]},"source":{"type":["string","null"]},"notes":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"},"total":{"type":["number","null"],"description":"Decimal currency units, not cents."},"paid":{"type":["number","null"],"description":"Decimal currency units, not cents."},"balance":{"type":["number","null"],"description":"Decimal currency units, not cents."}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/payments":{"get":{"operationId":"payments.list","summary":"List ledger payments","x-required-scope":"billing:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["posted","void"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","tenant_id","amount","method","status","received_at","reference","notes","refunded_amount","disputed_amount","payment_method_type","payment_method_brand","payment_method_last4","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"method":{"type":["string","null"]},"status":{"type":["string","null"]},"received_at":{"type":["string","null"],"format":"date-time"},"reference":{"type":["string","null"]},"notes":{"type":["string","null"]},"refunded_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"disputed_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"payment_method_type":{"type":["string","null"]},"payment_method_brand":{"type":["string","null"]},"payment_method_last4":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"payments.create","summary":"Record an offline account payment with atomic invoice allocations","x-required-scope":"billing:write","x-agent-blocked":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"tenant_id":{"type":"string","format":"uuid"},"amount_cents":{"type":"integer","minimum":1,"maximum":999999999},"received_at":{"type":"string","format":"date-time"},"method":{"type":"string","enum":["cash","check","other"]},"reference":{"type":"string","maxLength":4000},"notes":{"type":"string","maxLength":4000},"allocations":{"type":"array","minItems":0,"maxItems":50,"items":{"type":"object","required":["invoice_id","amount_cents"],"additionalProperties":false,"properties":{"invoice_id":{"type":"string","format":"uuid"},"amount_cents":{"type":"integer","minimum":1,"maximum":999999999}}}}},"required":["tenant_id","amount_cents","received_at","method","allocations"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/payments/{id}":{"get":{"operationId":"payments.get","summary":"Get ledger payments","x-required-scope":"billing:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","tenant_id","amount","method","status","received_at","reference","notes","refunded_amount","disputed_amount","payment_method_type","payment_method_brand","payment_method_last4","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"method":{"type":["string","null"]},"status":{"type":["string","null"]},"received_at":{"type":["string","null"],"format":"date-time"},"reference":{"type":["string","null"]},"notes":{"type":["string","null"]},"refunded_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"disputed_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"payment_method_type":{"type":["string","null"]},"payment_method_brand":{"type":["string","null"]},"payment_method_last4":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/agreements":{"get":{"operationId":"agreements.list","summary":"List rental agreement statuses","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["creating","draft","sent","viewed","in_progress","completed","expired","canceled","declined","bounced","error"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","name","status","provider","sent_at","completed_at","expires_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"status":{"type":["string","null"]},"provider":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"agreements.send","summary":"Send a rental agreement for e-signature through the facility signing provider","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"lease_id":{"type":"string","format":"uuid"},"template_id":{"type":"string","format":"uuid"},"signers":{"type":"array","minItems":1,"maxItems":10,"description":"One signer per template role. Leave out for a one-signer template to use the tenant on the rental.","items":{"type":"object","additionalProperties":false,"required":["role","name","email"],"properties":{"role":{"type":"string","maxLength":80,"minLength":1},"name":{"type":"string","maxLength":200,"minLength":1},"email":{"type":"string","format":"email","maxLength":254}}}},"subject":{"type":"string","maxLength":255,"minLength":1},"message":{"type":"string","maxLength":2000,"minLength":1}},"required":["lease_id","template_id"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/agreements/{id}":{"get":{"operationId":"agreements.get","summary":"Get rental agreement statuses","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","name","status","provider","sent_at","completed_at","expires_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"status":{"type":["string","null"]},"provider":{"type":["string","null"]},"sent_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs":{"get":{"operationId":"move-outs.list","summary":"List move-out requests","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["awaiting_inspection","action_required","completed","cancelled"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","unit_id","status","requested_move_out_date","inspection_outcome","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"status":{"type":["string","null"]},"requested_move_out_date":{"type":["string","null"],"format":"date"},"inspection_outcome":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"move-outs.create","summary":"Start a staff move-out and establish its billing cutoff","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"lease_id":{"type":"string","format":"uuid"},"move_out_date":{"type":"string","format":"date"},"notes":{"type":"string","maxLength":4000}},"required":["lease_id","move_out_date"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs/{id}":{"get":{"operationId":"move-outs.get","summary":"Get move-out requests","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","lease_id","tenant_id","unit_id","status","requested_move_out_date","inspection_outcome","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"status":{"type":["string","null"]},"requested_move_out_date":{"type":["string","null"],"format":"date"},"inspection_outcome":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"move-outs.update","summary":"Revise an uninspected move-out date","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"move_out_date":{"type":"string","format":"date"},"reason":{"type":"string","maxLength":4000,"minLength":5}},"required":["move_out_date","reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/transfers":{"get":{"operationId":"transfers.list","summary":"List unit transfer history","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","tenant_id","source_lease_id","target_lease_id","source_unit_id","target_unit_id","source_unit_number","target_unit_number","transfer_on","previous_rate","new_rate","security_deposit","billing_day","adjustment_amount","credit_amount","adjustment_invoice_id","old_unit_condition","inspection_notes","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"source_lease_id":{"type":["string","null"],"format":"uuid"},"target_lease_id":{"type":["string","null"],"format":"uuid"},"source_unit_id":{"type":["string","null"],"format":"uuid"},"target_unit_id":{"type":["string","null"],"format":"uuid"},"source_unit_number":{"type":["string","null"]},"target_unit_number":{"type":["string","null"]},"transfer_on":{"type":["string","null"],"format":"date"},"previous_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"new_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"security_deposit":{"type":["number","null"],"description":"Decimal currency units, not cents."},"billing_day":{"type":["integer","null"]},"adjustment_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"credit_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"adjustment_invoice_id":{"type":["string","null"],"format":"uuid"},"old_unit_condition":{"type":["string","null"]},"inspection_notes":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/transfers/{id}":{"get":{"operationId":"transfers.get","summary":"Get unit transfer history","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","tenant_id","source_lease_id","target_lease_id","source_unit_id","target_unit_id","source_unit_number","target_unit_number","transfer_on","previous_rate","new_rate","security_deposit","billing_day","adjustment_amount","credit_amount","adjustment_invoice_id","old_unit_condition","inspection_notes","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"source_lease_id":{"type":["string","null"],"format":"uuid"},"target_lease_id":{"type":["string","null"],"format":"uuid"},"source_unit_id":{"type":["string","null"],"format":"uuid"},"target_unit_id":{"type":["string","null"],"format":"uuid"},"source_unit_number":{"type":["string","null"]},"target_unit_number":{"type":["string","null"]},"transfer_on":{"type":["string","null"],"format":"date"},"previous_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"new_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"security_deposit":{"type":["number","null"],"description":"Decimal currency units, not cents."},"billing_day":{"type":["integer","null"]},"adjustment_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"credit_amount":{"type":["number","null"],"description":"Decimal currency units, not cents."},"adjustment_invoice_id":{"type":["string","null"],"format":"uuid"},"old_unit_condition":{"type":["string","null"]},"inspection_notes":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/work-orders":{"get":{"operationId":"work-orders.list","summary":"List maintenance work orders","x-required-scope":"maintenance:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","in_progress","waiting_on_vendor","completed","canceled"]}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","title","description","status","priority","assignee","due_date","estimated_cost","actual_cost","completed_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"status":{"type":["string","null"]},"priority":{"type":["string","null"]},"assignee":{"type":["string","null"]},"due_date":{"type":["string","null"],"format":"date"},"estimated_cost":{"type":["number","null"],"description":"Decimal currency units, not cents."},"actual_cost":{"type":["number","null"],"description":"Decimal currency units, not cents."},"completed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"work-orders.create","summary":"Create a unit maintenance work order","x-required-scope":"maintenance:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"unit_id":{"type":"string","format":"uuid"},"title":{"type":"string","minLength":2,"maxLength":160},"description":{"type":"string","maxLength":4000},"priority":{"type":"string","enum":["low","normal","high","emergency"]},"due_date":{"type":"string","format":"date"}},"required":["unit_id","title"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/work-orders/{id}":{"get":{"operationId":"work-orders.get","summary":"Get maintenance work orders","x-required-scope":"maintenance:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","title","description","status","priority","assignee","due_date","estimated_cost","actual_cost","completed_at","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"status":{"type":["string","null"]},"priority":{"type":["string","null"]},"assignee":{"type":["string","null"]},"due_date":{"type":["string","null"],"format":"date"},"estimated_cost":{"type":["number","null"],"description":"Decimal currency units, not cents."},"actual_cost":{"type":["number","null"],"description":"Decimal currency units, not cents."},"completed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"work-orders.update","summary":"Update work order status and details","x-required-scope":"maintenance:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string","minLength":2,"maxLength":160},"description":{"type":"string","maxLength":4000},"priority":{"type":"string","enum":["low","normal","high","emergency"]},"status":{"type":"string","enum":["open","in_progress","waiting_on_vendor","completed","canceled"]},"due_date":{"type":"string","format":"date"}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/promotions":{"get":{"operationId":"promotions.list","summary":"List rental promotions","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","name","code","size","discount_type","discount_value","starts_on","ends_on","start_month","duration_months","show_online","max_redemptions","redemption_count","active","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"code":{"type":["string","null"]},"size":{"type":["string","null"]},"discount_type":{"type":["string","null"]},"discount_value":{"type":["number","null"],"description":"Amount in decimal currency units or percentage according to discount_type."},"starts_on":{"type":["string","null"],"format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"start_month":{"type":["integer","null"]},"duration_months":{"type":["integer","null"]},"show_online":{"type":["boolean","null"]},"max_redemptions":{"type":["integer","null"]},"redemption_count":{"type":["integer","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"promotions.create","summary":"Create a move-in special for new rentals","x-required-scope":"inventory:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":120,"minLength":1},"code":{"type":"string","maxLength":40,"description":"Optional promo code customers enter; stored upper case."},"size":{"type":"string","maxLength":40,"description":"Unit size the special applies to, such as 10x10. Leave out for every size."},"discount_type":{"type":"string","enum":["percent","amount"]},"discount_percent":{"type":"integer","minimum":1,"maximum":100,"description":"For a percent special: 100 = that month free."},"discount_amount_cents":{"type":"integer","minimum":1,"maximum":999999999,"description":"For an amount special: dollars off each discounted month, in cents."},"start_month":{"type":"integer","minimum":1,"maximum":12,"description":"First discounted rent month: 1 = the first rent charged at move-in, 2 = the next monthly rent."},"duration_months":{"type":"integer","minimum":1,"maximum":12,"description":"How many consecutive rent months are discounted."},"starts_on":{"type":"string","format":"date","description":"First day new rentals can get the special. Defaults to today."},"ends_on":{"type":["string","null"],"format":"date","description":"Last day new rentals can get it; null for no end."},"max_redemptions":{"type":["integer","null"],"minimum":1},"active":{"type":"boolean"},"show_online":{"type":"boolean","description":"Show it on public listings and apply it at online checkout."}},"required":["name","discount_type"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/promotions/{id}":{"get":{"operationId":"promotions.get","summary":"Get rental promotions","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","name","code","size","discount_type","discount_value","starts_on","ends_on","start_month","duration_months","show_online","max_redemptions","redemption_count","active","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]},"code":{"type":["string","null"]},"size":{"type":["string","null"]},"discount_type":{"type":["string","null"]},"discount_value":{"type":["number","null"],"description":"Amount in decimal currency units or percentage according to discount_type."},"starts_on":{"type":["string","null"],"format":"date"},"ends_on":{"type":["string","null"],"format":"date"},"start_month":{"type":["integer","null"]},"duration_months":{"type":["integer","null"]},"show_online":{"type":["boolean","null"]},"max_redemptions":{"type":["integer","null"]},"redemption_count":{"type":["integer","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"promotions.update","summary":"Change a move-in special; rentals that already received it are unchanged","x-required-scope":"inventory:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":120,"minLength":1},"code":{"type":"string","maxLength":40,"description":"Optional promo code customers enter; stored upper case."},"size":{"type":"string","maxLength":40,"description":"Unit size the special applies to, such as 10x10. Leave out for every size."},"discount_type":{"type":"string","enum":["percent","amount"]},"discount_percent":{"type":"integer","minimum":1,"maximum":100,"description":"For a percent special: 100 = that month free."},"discount_amount_cents":{"type":"integer","minimum":1,"maximum":999999999,"description":"For an amount special: dollars off each discounted month, in cents."},"start_month":{"type":"integer","minimum":1,"maximum":12,"description":"First discounted rent month: 1 = the first rent charged at move-in, 2 = the next monthly rent."},"duration_months":{"type":"integer","minimum":1,"maximum":12,"description":"How many consecutive rent months are discounted."},"starts_on":{"type":"string","format":"date","description":"First day new rentals can get the special. Defaults to today."},"ends_on":{"type":["string","null"],"format":"date","description":"Last day new rentals can get it; null for no end."},"max_redemptions":{"type":["integer","null"],"minimum":1},"active":{"type":"boolean"},"show_online":{"type":"boolean","description":"Show it on public listings and apply it at online checkout."}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/retail-products":{"get":{"operationId":"retail-products.list","summary":"List retail products and stock","x-required-scope":"retail:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","sku","barcode","name","category","description","vendor","unit_cost_cents","price_cents","taxable","quantity_on_hand","reorder_point","active","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"sku":{"type":["string","null"]},"barcode":{"type":["string","null"]},"name":{"type":["string","null"]},"category":{"type":["string","null"]},"description":{"type":["string","null"]},"vendor":{"type":["string","null"]},"unit_cost_cents":{"type":["integer","null"]},"price_cents":{"type":["integer","null"]},"taxable":{"type":["boolean","null"]},"quantity_on_hand":{"type":["integer","null"]},"reorder_point":{"type":["integer","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/retail-products/{id}":{"get":{"operationId":"retail-products.get","summary":"Get retail products and stock","x-required-scope":"retail:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","sku","barcode","name","category","description","vendor","unit_cost_cents","price_cents","taxable","quantity_on_hand","reorder_point","active","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"sku":{"type":["string","null"]},"barcode":{"type":["string","null"]},"name":{"type":["string","null"]},"category":{"type":["string","null"]},"description":{"type":["string","null"]},"vendor":{"type":["string","null"]},"unit_cost_cents":{"type":["integer","null"]},"price_cents":{"type":["integer","null"]},"taxable":{"type":["boolean","null"]},"quantity_on_hand":{"type":["integer","null"]},"reorder_point":{"type":["integer","null"]},"active":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/retail-sales":{"get":{"operationId":"retail-sales.list","summary":"List retail sales","x-required-scope":"retail:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","paid","canceled"]}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","sale_number","customer_name","payment_method","status","subtotal_cents","tax_cents","total_cents","refunded_cents","note","paid_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"sale_number":{"type":["integer","null"]},"customer_name":{"type":["string","null"]},"payment_method":{"type":["string","null"]},"status":{"type":["string","null"]},"subtotal_cents":{"type":["integer","null"]},"tax_cents":{"type":["integer","null"]},"total_cents":{"type":["integer","null"]},"refunded_cents":{"type":["integer","null"]},"note":{"type":["string","null"]},"paid_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/retail-sales/{id}":{"get":{"operationId":"retail-sales.get","summary":"Get retail sales","x-required-scope":"retail:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","sale_number","customer_name","payment_method","status","subtotal_cents","tax_cents","total_cents","refunded_cents","note","paid_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"sale_number":{"type":["integer","null"]},"customer_name":{"type":["string","null"]},"payment_method":{"type":["string","null"]},"status":{"type":["string","null"]},"subtotal_cents":{"type":["integer","null"]},"tax_cents":{"type":["integer","null"]},"total_cents":{"type":["integer","null"]},"refunded_cents":{"type":["integer","null"]},"note":{"type":["string","null"]},"paid_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/automations":{"get":{"operationId":"automations.list","summary":"List automation workflows","x-required-scope":"automations:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","active","paused"]}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/automations/{id}":{"get":{"operationId":"automations.get","summary":"Get automation workflows","x-required-scope":"automations:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/inspections":{"get":{"operationId":"inspections.list","summary":"List unit inspections","x-required-scope":"maintenance:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"unit_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","inspector_user_id","inspection_type","result","checklist","notes","work_order_id","inspected_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"inspector_user_id":{"type":["string","null"],"format":"uuid"},"inspection_type":{"type":["string","null"]},"result":{"type":["string","null"]},"checklist":{"type":["object","null"]},"notes":{"type":["string","null"]},"work_order_id":{"type":["string","null"],"format":"uuid"},"inspected_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/inspections/{id}":{"get":{"operationId":"inspections.get","summary":"Get unit inspections","x-required-scope":"maintenance:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","unit_id","inspector_user_id","inspection_type","result","checklist","notes","work_order_id","inspected_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"inspector_user_id":{"type":["string","null"],"format":"uuid"},"inspection_type":{"type":["string","null"]},"result":{"type":["string","null"]},"checklist":{"type":["object","null"]},"notes":{"type":["string","null"]},"work_order_id":{"type":["string","null"],"format":"uuid"},"inspected_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/imports":{"get":{"operationId":"imports.list","summary":"List rental import batches","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/imports/{id}":{"get":{"operationId":"imports.get","summary":"Get rental import batches","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/rate-changes":{"get":{"operationId":"rate-changes.list","summary":"List scheduled and applied rent changes","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["scheduled","applied","cancelled","blocked"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","batch_id","lease_id","tenant_id","unit_number","tenant_name","previous_rate","new_rate","effective_on","notice_days","notice_sent_at","reason","status","blocked_reason","cancellation_reason","applied_at","cancelled_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"batch_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"unit_number":{"type":["string","null"]},"tenant_name":{"type":["string","null"]},"previous_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"new_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"effective_on":{"type":["string","null"],"format":"date"},"notice_days":{"type":["integer","null"]},"notice_sent_at":{"type":["string","null"],"format":"date-time"},"reason":{"type":["string","null"]},"status":{"type":["string","null"]},"blocked_reason":{"type":["string","null"]},"cancellation_reason":{"type":["string","null"]},"applied_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"post":{"operationId":"rate-changes.create","summary":"Schedule rent increases on future billing dates with tenant notice","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","format":"uuid"},"changes":{"type":"array","minItems":1,"maxItems":500,"items":{"type":"object","additionalProperties":false,"required":["lease_id","expected_rate_cents","new_rate_cents","effective_on"],"properties":{"lease_id":{"type":"string","format":"uuid"},"expected_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"new_rate_cents":{"type":"integer","minimum":1,"maximum":999999999},"effective_on":{"type":"string","format":"date"}}}},"reason":{"type":"string","maxLength":2000,"minLength":1},"notice_days":{"type":"integer","minimum":1,"maximum":365}},"required":["request_id","changes","reason","notice_days"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/rate-changes/{id}":{"get":{"operationId":"rate-changes.get","summary":"Get scheduled and applied rent changes","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","batch_id","lease_id","tenant_id","unit_number","tenant_name","previous_rate","new_rate","effective_on","notice_days","notice_sent_at","reason","status","blocked_reason","cancellation_reason","applied_at","cancelled_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"batch_id":{"type":["string","null"],"format":"uuid"},"lease_id":{"type":["string","null"],"format":"uuid"},"tenant_id":{"type":["string","null"],"format":"uuid"},"unit_number":{"type":["string","null"]},"tenant_name":{"type":["string","null"]},"previous_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"new_rate":{"type":["number","null"],"description":"Decimal currency units, not cents."},"effective_on":{"type":["string","null"],"format":"date"},"notice_days":{"type":["integer","null"]},"notice_sent_at":{"type":["string","null"],"format":"date-time"},"reason":{"type":["string","null"]},"status":{"type":["string","null"]},"blocked_reason":{"type":["string","null"]},"cancellation_reason":{"type":["string","null"]},"applied_at":{"type":["string","null"],"format":"date-time"},"cancelled_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/account":{"get":{"operationId":"account.get","summary":"Get workspace identity","x-required-scope":"account:read","parameters":[],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["id","name","slug","plan"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"slug":{"type":["string","null"]},"plan":{"type":["string","null"]}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}},"patch":{"operationId":"account.update","summary":"Update workspace name as a current administrator","x-required-scope":"settings:write","x-agent-confirmation":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":160}},"required":["name"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/tenants/{id}/archive":{"post":{"operationId":"tenants.archive","summary":"Archive contact when no active or scheduled rentals remain","x-required-scope":"tenants:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations/{id}/cancel":{"post":{"operationId":"reservations.cancel","summary":"Cancel a pending reservation","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations/{id}/convert":{"post":{"operationId":"reservations.convert","summary":"Convert an eligible reservation atomically","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/activate":{"post":{"operationId":"leases.activate","summary":"Activate scheduled move-in on the facility calendar","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/checkout-preview":{"post":{"operationId":"leases.checkout-preview","summary":"Preview final account and deposit reconciliation","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"move_out_date":{"type":"string","format":"date"}},"required":["move_out_date"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/checkout":{"post":{"operationId":"leases.checkout","summary":"Inspect and settle staff checkout atomically","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"move_out_date":{"type":"string","format":"date"},"outcome":{"type":"string","enum":["ready_to_rent","cleaning_required","damage_found","belongings_remain","lock_removal"]},"notes":{"type":"string","maxLength":4000},"cleaning_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"damage_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"other_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"fee_notes":{"type":"string","maxLength":4000},"deposit_collected_cents":{"type":"integer","minimum":0,"maximum":999999999},"deposit_applied_cents":{"type":"integer","minimum":0,"maximum":999999999},"return_method":{"type":"string","enum":["","cash","check","card","bank","ach","other"]},"return_reference":{"type":"string","maxLength":4000},"settlement_notes":{"type":"string","maxLength":4000},"expected_return_cents":{"type":"integer","minimum":0,"maximum":999999999}},"required":["move_out_date","outcome","deposit_collected_cents","deposit_applied_cents","expected_return_cents"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/transfer-preview":{"post":{"operationId":"leases.transfer-preview","summary":"Preview same-facility transfer and financial effects","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"target_unit_id":{"type":"string","format":"uuid"},"monthly_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"transfer_on":{"type":"string","format":"date"}},"required":["target_unit_id","monthly_rate_cents","transfer_on"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/transfer":{"post":{"operationId":"leases.transfer","summary":"Complete reviewed unit transfer atomically","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"target_unit_id":{"type":"string","format":"uuid"},"monthly_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"transfer_on":{"type":"string","format":"date"},"request_id":{"type":"string","format":"uuid"},"old_unit_condition":{"type":"string","enum":["ready","maintenance"]},"inspection_notes":{"type":"string","maxLength":4000},"unit_empty":{"type":"boolean"},"lock_removed":{"type":"boolean"},"agreement_acknowledged":{"type":"boolean"},"photo_id_verified":{"type":"boolean"},"insurance_verified":{"type":"boolean"},"expected_preview":{"type":"object"}},"required":["target_unit_id","monthly_rate_cents","transfer_on","request_id","old_unit_condition","inspection_notes","unit_empty","lock_removed","agreement_acknowledged","photo_id_verified","insurance_verified","expected_preview"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}/credits":{"post":{"operationId":"invoices.credit","summary":"Apply an audited invoice credit","x-required-scope":"billing:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"amount_cents":{"type":"integer","minimum":0,"maximum":999999999},"reason":{"type":"string","maxLength":4000,"minLength":1}},"required":["amount_cents","reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}/payments":{"post":{"operationId":"invoices.payment","summary":"Record money already received outside Stripe","x-required-scope":"billing:write","x-agent-blocked":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"amount_cents":{"type":"integer","minimum":0,"maximum":999999999},"received_at":{"type":"string","format":"date-time"},"method":{"type":"string","enum":["cash","check","other"]},"reference":{"type":"string","maxLength":4000},"notes":{"type":"string","maxLength":4000}},"required":["amount_cents","received_at","method"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}/deliver":{"post":{"operationId":"invoices.deliver","summary":"Queue invoice email through the existing reliable delivery ledger","x-required-scope":"billing:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/availability":{"get":{"operationId":"inventory.availability","summary":"List rentable doors with current public rates, excluding holds and live leases","x-required-scope":"inventory:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"unit_type_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"size","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"climate_control","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","facility_id","unit_number","size","monthly_price","climate_control","floor","access_type","unit_type_id","unit_type_name"],"properties":{"id":{"type":"string","format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"unit_number":{"type":["string","null"]},"size":{"type":["string","null"]},"monthly_price":{"type":["number","null"],"description":"Decimal currency units, not cents."},"climate_control":{"type":"boolean"},"floor":{"type":["string","null"]},"access_type":{"type":["string","null"]},"unit_type_id":{"type":["string","null"],"format":"uuid"},"unit_type_name":{"type":["string","null"]}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}/payment-link":{"post":{"operationId":"invoices.payment-link","summary":"Get a tenant-authenticated portal payment link","x-required-scope":"billing:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/payments/{id}/void":{"post":{"operationId":"payments.void","summary":"Void an offline payment with an audited reason","x-required-scope":"billing:write","x-agent-blocked":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","maxLength":4000,"minLength":1}},"required":["reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations/{id}/extend-hold":{"post":{"operationId":"reservations.extend-hold","summary":"Extend a pending hold from its current expiry","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"hours":{"type":"integer","minimum":1,"maximum":168}},"required":["hours"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reservations/{id}/release-hold":{"post":{"operationId":"reservations.release-hold","summary":"Convert an unexpired hold into a reservation","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/handoff":{"get":{"operationId":"leases.handoff","summary":"Read office agreement, identification, payment and handoff status","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":false,"properties":{"lease_id":{"type":"string","format":"uuid"},"organization_id":{"type":"string","format":"uuid"},"facility_id":{"type":"string","format":"uuid"},"contract_delivery":{"type":"string"},"contract_verified_at":{"type":["string","null"],"format":"date-time"},"contract_verification_note":{"type":["string","null"]},"handoff_override_at":{"type":["string","null"],"format":"date-time"},"handoff_override_reason":{"type":["string","null"]},"identification_due":{"type":"boolean"},"payment_invoice_id":{"type":["string","null"],"format":"uuid"},"payment_decision":{"type":"string"},"contract_template_id":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/agreement-delivery":{"post":{"operationId":"leases.agreement-delivery","summary":"Record the office agreement delivery choice","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"delivery":{"type":"string","enum":["email","print","later"]}},"required":["delivery"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/verify-agreement":{"post":{"operationId":"leases.verify-agreement","summary":"Record verification and location of a signed paper agreement","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"note":{"type":"string","maxLength":2000,"minLength":5}},"required":["note"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/override-handoff":{"post":{"operationId":"leases.override-handoff","summary":"Record an administrator-approved handoff exception","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","maxLength":2000,"minLength":10}},"required":["reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/leases/{id}/complete-payment":{"post":{"operationId":"leases.complete-payment","summary":"Finish office rental payment checks after settlement or an explicit leave-open decision","x-required-scope":"rentals:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"leave_invoices_open":{"type":"boolean"}},"required":["leave_invoices_open"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs/{id}/cancel":{"post":{"operationId":"move-outs.cancel","summary":"Cancel an uninspected move-out and restore billing","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","maxLength":4000,"minLength":5}},"required":["reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs/{id}/inspection":{"post":{"operationId":"move-outs.inspect","summary":"Inspect a checkout and assess final rent and fees","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"outcome":{"type":"string","enum":["ready_to_rent","cleaning_required","damage_found","belongings_remain","lock_removal"]},"notes":{"type":"string","maxLength":4000},"cleaning_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"damage_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"other_fee_cents":{"type":"integer","minimum":0,"maximum":999999999},"fee_notes":{"type":"string","maxLength":4000}},"required":["outcome"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs/{id}/settlement":{"post":{"operationId":"move-outs.settle","summary":"Reconcile deposit and record funds already returned after inspection","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"deposit_collected_cents":{"type":"integer","minimum":0,"maximum":999999999},"deposit_applied_cents":{"type":"integer","minimum":0,"maximum":999999999},"return_method":{"type":"string","enum":["","cash","check","card","bank","ach","other"]},"return_reference":{"type":"string","maxLength":4000},"notes":{"type":"string","maxLength":4000}},"required":["deposit_collected_cents","deposit_applied_cents","return_method"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/move-outs/{id}/complete":{"post":{"operationId":"move-outs.complete","summary":"Complete an inspected and settled checkout atomically","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"notes":{"type":"string","maxLength":4000}},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/payments/{id}/allocations":{"post":{"operationId":"payments.allocate","summary":"Apply unapplied offline cash to an invoice with an audited reason","x-required-scope":"billing:write","x-agent-blocked":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"invoice_id":{"type":"string","format":"uuid"},"amount_cents":{"type":"integer","minimum":1,"maximum":999999999},"reason":{"type":"string","maxLength":2000,"minLength":5}},"required":["invoice_id","amount_cents","reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/units/{id}/inspections":{"post":{"operationId":"units.inspect","summary":"Save an inspection, optional repair and readiness change atomically","x-required-scope":"maintenance:write","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","format":"uuid"},"inspection_type":{"type":"string","enum":["routine","turnover","move_out"]},"result":{"type":"string","enum":["passed","needs_attention","not_ready"]},"checklist":{"type":"object","additionalProperties":false,"properties":{"clean_dry":{"type":"boolean"},"lock_door_works":{"type":"boolean"},"no_damage":{"type":"boolean"},"access_lighting_ok":{"type":"boolean"},"ready_to_rent":{"type":"boolean"}}},"notes":{"type":"string","maxLength":4000},"restore_available":{"type":"boolean"},"work_order":{"type":["object","null"],"required":["priority"],"additionalProperties":false,"properties":{"priority":{"type":"string","enum":["low","normal","high","emergency"]},"assignee":{"type":["string","null"],"maxLength":160},"due_date":{"type":["string","null"],"format":"date"}}}},"required":["request_id","inspection_type","result","restore_available"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/tenant-reuse":{"get":{"operationId":"tenants.search-reuse","summary":"Explicitly search reusable contacts within current credential facility grants","x-required-scope":"tenants:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":160}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","organization_id","facility_id","first_name","last_name","email","phone","status","notes","address_line_1","address_line_2","city","state","postal_code","alternate_contact_name","alternate_contact_relationship","alternate_contact_phone","alternate_contact_email","active_military","created_at","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"organization_id":{"type":["string","null"],"format":"uuid"},"facility_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"status":{"type":["string","null"]},"notes":{"type":["string","null"]},"address_line_1":{"type":["string","null"]},"address_line_2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"alternate_contact_name":{"type":["string","null"]},"alternate_contact_relationship":{"type":["string","null"]},"alternate_contact_phone":{"type":["string","null"]},"alternate_contact_email":{"type":["string","null"]},"active_military":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/credential":{"get":{"operationId":"credential.get","summary":"Describe this credential: workspace, granted facilities, scopes, and the operations that need operator confirmation or are blocked","x-required-scope":"*","parameters":[],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/overview":{"get":{"operationId":"facilities.overview","summary":"Facility snapshot: occupancy, rent roll, receivables and pending work","x-required-scope":"reports:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/portfolio":{"get":{"operationId":"portfolio.summary","summary":"Snapshot of every granted facility with portfolio totals","x-required-scope":"reports:read","parameters":[],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reports/rent-roll":{"get":{"operationId":"reports.rent-roll","summary":"Current and upcoming rentals with tenant, unit, rate and open balance","x-required-scope":"reports:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reports/aging":{"get":{"operationId":"reports.aging","summary":"Open balances by tenant in aging buckets on the facility calendar","x-required-scope":"reports:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/messages":{"get":{"operationId":"messages.list","summary":"Tenant email and text history, newest first","x-required-scope":"messages:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Opaque next_cursor from the previous page."}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","enum":["email","sms"]}},{"name":"tenant_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"]}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/audit":{"get":{"operationId":"audit.list","summary":"Workspace activity log for this facility, newest first, including AI agent actions","x-required-scope":"audit:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Opaque next_cursor from the previous page."}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"]}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/staff":{"get":{"operationId":"staff.list","summary":"Workspace team members with roles and assignments to granted facilities","x-required-scope":"staff:read","parameters":[],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/billing-automation":{"get":{"operationId":"billing-automation.get","summary":"Billing automation, rent reminder and late-fee settings","x-required-scope":"automations:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/units/import":{"post":{"operationId":"units.import","summary":"Create up to 1,000 units in one all-or-nothing import","x-required-scope":"inventory:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"units":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"object","required":["unit_number","size","monthly_price_cents"],"additionalProperties":false,"properties":{"unit_number":{"type":"string","minLength":1,"maxLength":40},"size":{"type":"string","minLength":1,"maxLength":40,"description":"Width x depth in feet, such as 10x10."},"monthly_price_cents":{"type":"integer","minimum":0,"maximum":999999999},"climate_control":{"type":"boolean"},"floor":{"type":"string","maxLength":40},"access_type":{"type":"string","enum":["Indoor","Drive-up","Upper floor","Vehicle"]},"building":{"type":"string","maxLength":80},"notes":{"type":"string","maxLength":2000},"status":{"type":"string","enum":["available","maintenance"]}}}}},"required":["units"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/imports/rentals":{"post":{"operationId":"imports.rentals","summary":"Import existing rentals from another system atomically, reconciled against source totals","x-required-scope":"imports:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","format":"uuid"},"source_name":{"type":"string","maxLength":200,"minLength":1},"cutover_on":{"type":"string","format":"date"},"rows":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"object","additionalProperties":false,"required":["unit_number","first_name","last_name","start_date","next_due_date","monthly_rate_cents","security_deposit_cents"],"properties":{"row_number":{"type":"string","maxLength":20},"unit_number":{"type":"string","maxLength":40,"minLength":1},"tenant_id":{"type":"string","format":"uuid"},"first_name":{"type":"string","maxLength":100,"minLength":1},"last_name":{"type":"string","maxLength":100,"minLength":1},"email":{"type":"string","format":"email","maxLength":254},"phone":{"type":"string","maxLength":40},"start_date":{"type":"string","format":"date"},"next_due_date":{"type":"string","format":"date"},"billing_day":{"type":"integer","minimum":1,"maximum":28},"monthly_rate_cents":{"type":"integer","minimum":0,"maximum":999999999},"security_deposit_cents":{"type":"integer","minimum":0,"maximum":999999999},"deposit_held_cents":{"type":"integer","minimum":0,"maximum":999999999},"opening_balance_cents":{"type":"integer","minimum":0,"maximum":999999999},"opening_balance_due_date":{"type":"string","format":"date"},"prepaid_credit_cents":{"type":"integer","minimum":0,"maximum":999999999},"address_line_1":{"type":"string","maxLength":200},"address_line_2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":200},"state":{"type":"string","maxLength":200},"postal_code":{"type":"string","maxLength":40},"alternate_contact_name":{"type":"string","maxLength":200},"alternate_contact_relationship":{"type":"string","maxLength":200},"alternate_contact_phone":{"type":"string","maxLength":40},"alternate_contact_email":{"type":"string","maxLength":254},"active_military":{"type":"boolean"},"notes":{"type":"string","maxLength":2000}}}},"expected_totals":{"type":"object","additionalProperties":false,"required":["rentals","monthly_rent_cents","opening_balance_cents","deposits_held_cents"],"properties":{"rentals":{"type":"integer","minimum":1,"maximum":1000},"monthly_rent_cents":{"type":"integer","minimum":0,"maximum":999999999},"opening_balance_cents":{"type":"integer","minimum":0,"maximum":999999999},"deposits_held_cents":{"type":"integer","minimum":0,"maximum":999999999},"prepaid_credits_cents":{"type":"integer","minimum":0,"maximum":999999999}}}},"required":["request_id","source_name","cutover_on","rows","expected_totals"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/imports/{id}/undo":{"post":{"operationId":"imports.undo","summary":"Undo a rental import that has no later activity","x-required-scope":"imports:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/rate-changes/{id}/cancel":{"post":{"operationId":"rate-changes.cancel","summary":"Cancel a scheduled rent change","x-required-scope":"rentals:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1}},"required":["reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/invoices/{id}/write-off":{"post":{"operationId":"invoices.write-off","summary":"Write off part or all of an uncollectible invoice balance","x-required-scope":"billing:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"amount_cents":{"type":"integer","minimum":1,"maximum":999999999},"reason":{"type":"string","maxLength":2000,"minLength":1}},"required":["amount_cents","reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/messages/email":{"post":{"operationId":"messages.send-email","summary":"Queue an email to one or more tenants through the facility email sender","x-required-scope":"messages:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","format":"uuid"},"tenant_ids":{"type":"array","minItems":1,"maxItems":500,"items":{"type":"string","format":"uuid"}},"subject":{"type":"string","maxLength":200,"minLength":1},"body":{"type":"string","maxLength":10000,"minLength":1}},"required":["request_id","tenant_ids","subject","body"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/messages/text":{"post":{"operationId":"messages.send-text","summary":"Queue a text to a tenant who opted in to text notifications","x-required-scope":"messages:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"body":{"type":"string","maxLength":1600,"minLength":1}},"required":["request_id","tenant_id","body"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/staff/{id}":{"patch":{"operationId":"staff.update","summary":"Change a team member’s workspace role","x-required-scope":"staff:write","x-agent-confirmation":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"role":{"type":"string","enum":["full_access","admin","staff"]},"access_role_id":{"type":["string","null"],"format":"uuid"}},"required":["role"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/staff/{id}/remove":{"post":{"operationId":"staff.remove","summary":"Remove a team member from the workspace","x-required-scope":"staff:write","x-agent-confirmation":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/size-rates":{"post":{"operationId":"size-rates.set","summary":"Set the advertised (street) rate for every unit of a size, now or from a future date. Existing rentals keep their rent","x-required-scope":"inventory:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"size":{"type":"string","maxLength":60,"minLength":1},"monthly_price_cents":{"type":"integer","minimum":0,"maximum":999999999},"variants":{"type":"array","minItems":1,"maxItems":20,"description":"Different rates by access type and climate control. Leave out to give every kind of unit of this size monthly_price_cents.","items":{"type":"object","additionalProperties":false,"required":["access_type","climate_control","monthly_price_cents"],"properties":{"access_type":{"type":"string","minLength":1,"maxLength":40},"climate_control":{"type":"boolean"},"monthly_price_cents":{"type":"integer","minimum":0,"maximum":999999999}}}},"effective_on":{"type":"string","format":"date","description":"Defaults to today."},"reason":{"type":"string","maxLength":300,"minLength":1}},"required":["size","monthly_price_cents","reason"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/conversations":{"get":{"operationId":"messages.conversations","summary":"Text conversations with tenants, most recent first, with unread counts and the latest message","x-required-scope":"messages:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Opaque next_cursor from the previous page."}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":160,"description":"Name or phone fragment."}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"]}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/reports/finance-sources":{"get":{"operationId":"reports.finance-sources","summary":"Ledger records behind the financial reports (invoices, payments, credits, expenses, bills, retail, deposits) for a period of up to two years. Requires Finance access","x-required-scope":"reports:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/agreement-templates":{"get":{"operationId":"agreements.templates","summary":"Signing templates that can be sent for e-signature, with their signer roles","x-required-scope":"rentals:read","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":true}},"next_cursor":{"type":["string","null"],"format":"uuid"}}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/facilities/{facility_id}/billing-runs":{"post":{"operationId":"billing.run","summary":"Create the rent invoices now due for every active rental (the facility billing run). Creates invoices only and charges nothing; active \"invoice created\" automations run for the new invoices as usual, and the confirmation summary says whether there are any","x-required-scope":"billing:write","x-agent-confirmation":true,"parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{},"required":[]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/staff/invitations":{"post":{"operationId":"staff.invite","summary":"Invite a person to the workspace by email","x-required-scope":"staff:write","x-agent-confirmation":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"X-Confirmation-Token","in":"header","required":false,"description":"Required for AI agent credentials: the token from POST /confirmations after the operator approves.","schema":{"type":"string","maxLength":100}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email","maxLength":254},"role":{"type":"string","enum":["full_access","admin","staff"]},"access_role_id":{"type":["string","null"],"format":"uuid"}},"required":["email","role"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}},"/confirmations":{"post":{"operationId":"confirmations.create","summary":"Prepare an operator confirmation for a sensitive operation: returns a plain-language summary, a 15-minute single-use token and, where the change needs a person’s approval, an approval link and code the operator opens in Axral","x-required-scope":"*","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"operation":{"type":"string","enum":["invoices.create","invoices.credit","invoices.deliver","invoices.write-off","leases.checkout","leases.transfer","leases.override-handoff","move-outs.create","move-outs.update","move-outs.cancel","move-outs.inspect","move-outs.settle","move-outs.complete","reservations.cancel","tenants.archive","facilities.update","account.update","units.import","imports.rentals","imports.undo","rate-changes.create","rate-changes.cancel","messages.send-email","messages.send-text","staff.update","staff.remove","promotions.create","promotions.update","size-rates.set","agreements.send","billing.run","staff.invite"]},"params":{"type":"object","description":"The exact parameters of the operation, including its path identifiers such as facility_id and id."}},"required":["operation","params"]}}}},"responses":{"200":{"description":"Successful operation. See the developer guide for domain projections and money/date semantics.","headers":{"X-Request-Id":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","additionalProperties":true,"description":"Existing atomic workflow result; see the developer guide. Currency values in responses use decimal currency units."},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/ApiError"},"401":{"$ref":"#/components/responses/ApiError"},"403":{"$ref":"#/components/responses/ApiError"},"404":{"$ref":"#/components/responses/ApiError"},"405":{"$ref":"#/components/responses/ApiError"},"409":{"$ref":"#/components/responses/ApiError"},"413":{"$ref":"#/components/responses/ApiError"},"415":{"$ref":"#/components/responses/ApiError"},"429":{"$ref":"#/components/responses/ApiError"},"500":{"$ref":"#/components/responses/ApiError"},"503":{"$ref":"#/components/responses/ApiError"}}}}}}