curl --request POST \
--url /tenant/v1/contracts \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {access_token}' \
--data '{
"duration": 1,
"contract_type": "residential",
"parties": [
{
"role": "lessor",
"id": 1
},
{
"role": "tenant",
"id": 2
}
],
"unit_id": "1945",
"rental_fee": {
"total_units_rent": 10000,
"billing_type": "monthly"
},
"terms": {
"residential_auto_renewal": 0,
"notice_period_in_days": 30
}
}'