curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"reason": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ends_on: '2023-12-25', notified_on: '2023-12-25', reason: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release"
payload = {
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"reason": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"release": {
"id": 123,
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"termination_cause": "tenant_unilateral",
"evidence": "letter",
"reason": "<string>",
"released_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"available_from": "2023-12-25"
},
"listed": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"errors": [
"<string>"
]
}Liberar la propiedad del arriendo
Registra que al arriendo en curso del contrato le avisaron que termina el ends_on. La unidad vuelve al mercado de arriendo (si el plan tiene cupo) y puedes firmar un sucesor que empiece después de ese día. El arriendo y su cobro siguen corriendo hasta que se registra la entrega del inmueble. Sirve para contratos pre-firmados y firmados en Yampi. Envía multipart/form-data si adjuntas la carta de terminación.
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"reason": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ends_on: '2023-12-25', notified_on: '2023-12-25', reason: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/contract_submissions/{contract_submission_id}/tenancy/release"
payload = {
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"reason": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"release": {
"id": 123,
"ends_on": "2023-12-25",
"notified_on": "2023-12-25",
"termination_cause": "tenant_unilateral",
"evidence": "letter",
"reason": "<string>",
"released_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"available_from": "2023-12-25"
},
"listed": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{
"errors": [
"<string>"
]
}Authorizations
Path Parameters
ID del contract submission
The numeric ID of the account
Body
Fin programado del arriendo; no puede ser anterior a la fecha de inicio del contrato
Día en que se dio el aviso; no puede ser futuro
tenant_unilateral, landlord_unilateral, mutual_agreement, notice_fulfilled Por qué termina el arriendo
Qué respalda la liberación: letter (carta), conversation (conversación) o manual
letter, conversation, manual Display ID de una conversación con uno de los arrendatarios del arriendo; obligatorio si evidence es conversation
Was this page helpful?