Unit Change Result
When an agent changes a resident's unit in Funnel, this POST endpoint lets you tell Funnel whether your PMS was updated to the new unit, or that the change didn't go through. Until Funnel receives the result, anything that depends on the new unit, such as re-screening, stays on hold.
/api/v2/lease-transactions/:id/unit-changeRequest
Response
When an agent changes a resident's unit, Funnel sends two webhook events, both with the same
lease_transaction_id:
lease_transaction.unit_released for the old unit,
then lease_transaction.unit_reserved for the new one.
Everything in the result comes from those two events, and the :id in the path is their
lease_transaction_id.
Only send a result for an actual unit change
lease_transaction.unit_reserved also fires in other cases, for example when a holding deposit is paid
or a canceled application is reactivated. It's only a unit change when it follows a
lease_transaction.unit_released for the same lease transaction. Don't send a result for the other
cases.
Send a result for every unit change, including failures
Send the result once your PMS shows the new unit, or once you've given up on the change. If Funnel never hears
about a failure, the application stays on hold. When a change fails, send
lease_transaction.unit_change.failed rather than just stopping; leasing staff are then shown
error.message.
Example: failed unit change
{
"event": "lease_transaction.unit_change.failed",
"created_at": "2026-10-01T15:44:30Z",
"data": {
"old_unit": {
"unit_id": 4352,
"unit_pms_identifier": "u1234",
"unit_number": "101",
"building_number": "123",
"internal_building_number": "456"
},
"new_unit": {
"unit_id": 4398,
"unit_pms_identifier": "u5678",
"unit_number": "204",
"building_number": "123",
"internal_building_number": "456"
},
"processed_at": "2026-10-01T15:44:21Z",
"error": {
"code": "unit_unavailable",
"message": "Unit 204 is not available for the requested move-in date."
}
}
}
Funnel looks up the lease transaction from the path and compares new_unit.unit_id with its current
unit, so there's no need to send the community.
| Situation | What Funnel does |
|---|---|
| The new unit is the lease transaction's current unit | Funnel records the result. If the change completed, the workflow picks back up. If it failed, the application stays on hold and leasing staff see error.message. |
| The unit changed again in the meantime (A → B, then B → C) | Funnel doesn't apply the result for B and returns 409. It waits for the result for C. |
| Funnel already has this result | Nothing happens. It's treated as a repeat and still returns 200. |
| A failure, then a success for the same change (for example, after a re-run) | The result with the later processed_at wins. |
Success response is 200 with an empty body
Funnel validates and applies the result before responding, so the response tells you how it went. On success,
this endpoint returns 200 OK with a zero-length body and no
Content-Type: application/json header. Do not attempt to parse the response as JSON.
Retries
Only retry on 5xx responses, timeouts, and connection errors. Back off between attempts (for example 1 min, 5 min, 30 min, 2 h, 6 h, then hourly) and give up after 24 hours; a 10-second timeout per request is plenty. Resend the same body each time: if an earlier attempt actually went through, you'll still get a 200, so retrying is always safe. 4xx responses won't succeed on retry and should be logged for someone to look at.
Invalid Request Data (400)
Returned when the body isn't valid JSON, or a field is missing or has the wrong type or value — for example, an error on a completed result, or no error on a failed one. Fix the request before sending it again.
LeaseTransaction Not Found (404)
Returned when id doesn't match a lease transaction for your company. This body has no lease_transaction_id field.
Unit Changed Since This Result (409)
Returned when new_unit.unit_id is no longer the lease transaction's current unit, because the unit was changed again. The result was not applied. Don't retry: expect another lease_transaction.unit_released / lease_transaction.unit_reserved pair for the newer change.